MXCP

v1.0.0Developer Toolsstable

** (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.

chatgptclaudedbtduckdblarge-language-model
Share:
68
Stars
0
Downloads
0
Weekly
0/5

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

Enterprise MCP server framework with YAML config
Built-in auth, monitoring, ETL, and policy enforcement
raw-labs

Maintainer

LicenseNOASSERTION
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mxcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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]"
2

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 --bootstrap
3

Review 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.

4

Validate and lint your tool definitions

Before serving, validate types and SQL references, then lint the metadata for LLM compatibility.

mxcp validate
mxcp lint
5

Start the MCP server

Launch the server locally. It exposes all defined tools over the MCP protocol for your configured client to discover.

mxcp serve
6

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "mxcp": { "command": "npx", "args": ["-y", "mxcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides