Skip to content
Star -

Quickstart

Get MXCP running and connected to Claude Desktop in under 5 minutes.

Terminal window
pip install mxcp

Initialize a new project with a working example:

Terminal window
mkdir my-mxcp-project
cd my-mxcp-project
mxcp init --bootstrap

This creates a complete project structure with a hello world tool.

Test the example tool from the command line:

Terminal window
mxcp run tool hello_world --param name=World

Output:

Hello, World!

Start the MCP server:

Terminal window
mxcp serve

The server starts in stdio mode, ready for AI client integration.

Add MXCP to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
"mcpServers": {
"my-project": {
"command": "mxcp",
"args": ["serve"],
"cwd": "/absolute/path/to/my-mxcp-project"
}
}
}

Restart Claude Desktop. Ask Claude:

“Say hello to Alice using the hello_world tool”

The bootstrap created these files:

my-mxcp-project/
├── mxcp-site.yml # Project configuration
├── tools/
│ └── hello-world.yml # Tool definition
└── sql/
└── hello-world.sql # SQL implementation

Tool definition (tools/hello-world.yml):

mxcp: 1
tool:
name: hello_world
description: A simple hello world tool
parameters:
- name: name
type: string
description: Name to greet
return:
type: string
description: Greeting message
source:
file: ../sql/hello-world.sql

SQL implementation (sql/hello-world.sql):

SELECT 'Hello, ' || $name || '!' as greeting

You have a working MXCP server connected to Claude Desktop. Here’s where to go next:

TutorialDescription
SQL EndpointsQuery databases, aggregate data
Python EndpointsComplex logic, API calls, ML models
Hello World Deep DiveStep-by-step first tool walkthrough
FeatureDescription
AuthenticationOAuth with GitHub, Google, etc.
PoliciesFine-grained access control
Audit LoggingTrack all operations
ToolDescription
ValidationVerify endpoint correctness
TestingUnit tests for your tools
LintingImprove AI understanding
Terminal window
mxcp validate # Check all endpoints
mxcp test # Run tests
mxcp lint # Check for issues
mxcp list # Show all endpoints