quickstart.md
December 18, 2025 · View on GitHub
Get MXCP running and connected to Claude Desktop in under 5 minutes.
Install MXCP
pip install mxcp
Create a Project
Initialize a new project with a working example:
mkdir my-mxcp-project
cd my-mxcp-project
mxcp init --bootstrap
This creates a complete project structure with a hello world tool.
Run the Tool
Test the example tool from the command line:
mxcp run tool hello_world --param name=World
Output:
Hello, World!
Start the Server
Start the MCP server:
mxcp serve
The server starts in stdio mode, ready for AI client integration.
:::tip[MCP Inspector]
Use the MCP Inspector to visually test and debug your server: npx @modelcontextprotocol/inspector
:::
Connect to Claude Desktop
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"
What's in the Project?
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
Next Steps
You have a working MXCP server connected to Claude Desktop. Here's where to go next:
Build More Tools
| Tutorial | Description |
|---|---|
| SQL Endpoints | Query databases, aggregate data |
| Python Endpoints | Complex logic, API calls, ML models |
| Hello World Deep Dive | Step-by-step first tool walkthrough |
Add Enterprise Features
| Feature | Description |
|---|---|
| Authentication | OAuth with GitHub, Google, etc. |
| Policies | Fine-grained access control |
| Audit Logging | Track all operations |
Ensure Quality
| Tool | Description |
|---|---|
| Validation | Verify endpoint correctness |
| Testing | Unit tests for your tools |
| Linting | Improve AI understanding |
Useful Commands
mxcp validate # Check all endpoints
mxcp test # Run tests
mxcp lint # Check for issues
mxcp list # Show all endpoints
Learn More
- Introduction - How MXCP works
- Core Concepts - Endpoints, types, project structure
- Configuration - Profiles, environments