SQL Analysis MCP Server
An MCP server designed for SQL analysis that demonstrates sampling capabilities by interacting with SQL files in a local directory. It provides a framework for testing client-side sampling while managing SQL-based contexts.
README
Model Context Protocol (MCP) Server
This project is a simple example of a server that implements the Model Context Protocol (MCP), which tests using "sampling" where available on the MCP client.
Prerequisites
- Python 3.x
- uv: A fast Python package installer and resolver.
- fastmcp: A library for building MCP servers and clients.
- Node.js and npm (to use
npx).
Installation
-
Install dependencies:
Use
uvto sync the project's dependencies frompyproject.tomlanduv.lock. This will installfastmcpand other necessary packages.uv sync
Running the Server in Development
To run the server and inspect it with the MCP Inspector tool, execute the following command in your terminal. You can find more information about the inspector tool in the official documentation.
npx @modelcontextprotocol/inspector uv run mcp_server.py -- --sql_path /path/to/your/sql/files
This command does the following:
npx @modelcontextprotocol/inspector: Downloads and runs the official MCP Inspector.uv run mcp_server.py: The inspector then usesuvto execute themcp_server.pyscript within the project's managed virtual environment.
The inspector will launch in your web browser, providing a user interface to interact with the running MCP server.
Running the Server in Production
In a production environment, an MCP client would connect to the server. The client needs a configuration that tells it how to start and communicate with the server. This is typically done with a JSON configuration file.
You can generate the JSON configuration for this server using the fastmcp command-line tool:
fastmcp install mcp-json mcp_server.py -- --sql_path /path/to/your/sql/files
This will output a JSON object that you can use to configure an MCP client. The generated configuration for this server will look like this:
{
"mcpServers": {
"sql-analysis-server": {
"command": "uv",
"args": ["run", "mcp_server.py", "--", "--sql_path", "/path/to/your/sql/files"],
"cwd": "/home/your-dev-folder/sql-analysis-mcp-server"
}
}
}
This configuration tells the client to start the "sql-analysis-server" by running the command uv run mcp_server.py -- --sql_path /path/to/your/sql/files and to communicate with it using the standard input/output (stdio) transport.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.