MXCP
** (Python) - Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
What is MXCP?
MXCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ** (python) - open-source framework for building enterprise-grade mcp servers using just yaml, sql, and python, with built-in auth, monitoring, etl and policy enforcement.
** (Python) - Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- ** (Python) - Open-source framework for building enterprise-
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mxcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MXCP
MXCP (Model eXtensible Context Protocol) is an open-source Python framework for building enterprise-grade MCP servers using YAML configuration files, SQL queries, and Python scripts — no server boilerplate required. It provides built-in OAuth 2.0 authentication, role-based access control, a full audit trail, OpenTelemetry tracing, DuckDB and dbt integration, and schema drift detection. Teams that need to expose internal data and business logic to AI assistants in a governed, auditable way can deploy a production-ready MCP server in minutes with `pip install mxcp && mxcp serve`.
Prerequisites
- Python 3.9 or later with pip
- An MCP-compatible client such as Claude Desktop or any OpenAI-compatible client
- Optional: Docker (for HashiCorp Vault or 1Password secret integration)
- Optional: dbt installed if you want to use dbt model integration
Install MXCP
Install the core package with pip. Optional extras add HashiCorp Vault, 1Password, or all integrations at once.
pip install mxcp
# Or with all optional integrations:
# pip install "mxcp[all]"Initialize a new project with bootstrap content
Create a new directory and run `mxcp init --bootstrap` to generate a starter project with example tools, SQL queries, and the site configuration file.
mkdir my-ai-tools && cd my-ai-tools
mxcp init --bootstrapReview the generated project structure
The bootstrap creates `mxcp-site.yml` (main config), `tools/` (YAML tool definitions), `sql/` (SQL query files), and `python/` (Python handler scripts). Edit these to define your own tools.
Validate and lint your tool definitions
Before serving, validate types and SQL references, then lint the metadata for LLM compatibility.
mxcp validate
mxcp lintStart the MCP server
Launch the server locally. It exposes all defined tools over the MCP protocol for your configured client to discover.
mxcp serveConfigure your MCP client
Add the MXCP server to your Claude Desktop configuration. Since `mxcp serve` runs as a subprocess, use the stdio transport.
MXCP Examples
Client configuration
Add this block to your Claude Desktop configuration file. Adjust the `cwd` to the absolute path of your MXCP project directory.
{
"mcpServers": {
"mxcp": {
"command": "mxcp",
"args": ["serve"],
"cwd": "/absolute/path/to/my-ai-tools"
}
}
}Prompts to try
Once the server is running with your tool definitions loaded, these prompts drive the MXCP tools.
- "List all available tools in this MCP server"
- "Run the customer_summary SQL tool for the last 30 days"
- "Query the sales data aggregated by region for Q4"
- "Show me the audit log for tool calls made in the last hour"
- "Run the test suite for the pricing tool and report any failures"Troubleshooting MXCP
`mxcp validate` reports SQL reference errors
Ensure the DuckDB database file path referenced in `mxcp-site.yml` exists and is accessible. SQL files in the `sql/` directory must match the names referenced in YAML tool definitions.
Authentication fails when the server is configured with OAuth
Check the `auth` section of `mxcp-site.yml`. For GitHub OAuth, ensure the `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` environment variables are set before running `mxcp serve`.
Tools are not visible in the MCP client after configuration
Run `mxcp list` from the project directory to confirm tools are discovered locally. If they appear there but not in the client, restart the client and verify the `cwd` in the config points to the correct project directory.
Frequently Asked Questions about MXCP
What is MXCP?
MXCP is a Model Context Protocol (MCP) server that ** (python) - open-source framework for building enterprise-grade mcp servers using just yaml, sql, and python, with built-in auth, monitoring, etl and policy enforcement. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MXCP?
Follow the installation instructions on the MXCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MXCP?
MXCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MXCP free to use?
Yes, MXCP is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
MXCP Alternatives — Similar Developer Tools Servers
Looking for alternatives to MXCP? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MXCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MXCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.