Data Intelligence MCP Server
Enables natural language interaction with BigQuery, providing tools to list tables, fetch schemas, and generate/execute queries via MCP.
README
Data Intelligence
This project builds a BigQuery-powered data assistant that combines an MCP server with a Streamlit chat interface. The backend exposes BigQuery operations through MCP tools, while the frontend lets users ask questions in natural language and receive answers with the help of an agent.
What this project does
- Exposes BigQuery tools from the MCP server in main.py
- Lists tables and fetches table schemas
- Generates and executes BigQuery queries
- Provides a chat-based UI in app.py for interacting with your data
Project structure
- main.py: Defines the FastMCP server and BigQuery tool wrappers
- app.py: Streamlit UI that connects to the MCP server and runs the agent
- pyproject.toml: Project dependencies and Python metadata
Prerequisites
Before running the project, make sure you have:
- Python 3.13 or newer
- A Google Cloud project with BigQuery access
- A valid Google Cloud credential configuration for BigQuery
- An Anthropic API key for the chat model used in the app
Setup
- Create and activate a virtual environment.
- Install the dependencies:
pip install -r requirements.txt- or
uv sync
- Create a
.envfile in the project root with the required environment variables:
ANTHROPIC_API_KEY=your_anthropic_api_key
GOOGLE_APPLICATION_CREDENTIALS=path/to/your/credentials.json
- Update the placeholder values in main.py for your BigQuery project and dataset.
Running the app
Start the MCP server first:
python main.py
In a second terminal, start the Streamlit app:
streamlit run app.py
The app expects the MCP server to be available at:
http://localhost:8000/mcp
Notes
- The current implementation in main.py uses placeholder values such as
project_idanddataset_name. Replace these with your actual BigQuery project and dataset before running the app. - The UI is designed for natural language interaction with BigQuery data, but the underlying SQL execution depends on your configured BigQuery access and credentials.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.