Quickstart
Get MXCP running and connected to Claude Desktop in under 5 minutes.
Install MXCP
Section titled “Install MXCP”pip install mxcpCreate a Project
Section titled “Create a Project”Initialize a new project with a working example:
mkdir my-mxcp-projectcd my-mxcp-projectmxcp init --bootstrapThis creates a complete project structure with a hello world tool.
Run the Tool
Section titled “Run the Tool”Test the example tool from the command line:
mxcp run tool hello_world --param name=WorldOutput:
Hello, World!Start the Server
Section titled “Start the Server”Start the MCP server:
mxcp serveThe server starts in stdio mode, ready for AI client integration.
Connect to Claude Desktop
Section titled “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?
Section titled “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 implementationTool definition (tools/hello-world.yml):
mxcp: 1tool: 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.sqlSQL implementation (sql/hello-world.sql):
SELECT 'Hello, ' || $name || '!' as greetingNext Steps
Section titled “Next Steps”You have a working MXCP server connected to Claude Desktop. Here’s where to go next:
Build More Tools
Section titled “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
Section titled “Add Enterprise Features”| Feature | Description |
|---|---|
| Authentication | OAuth with GitHub, Google, etc. |
| Policies | Fine-grained access control |
| Audit Logging | Track all operations |
Ensure Quality
Section titled “Ensure Quality”| Tool | Description |
|---|---|
| Validation | Verify endpoint correctness |
| Testing | Unit tests for your tools |
| Linting | Improve AI understanding |
Useful Commands
Section titled “Useful Commands”mxcp validate # Check all endpointsmxcp test # Run testsmxcp lint # Check for issuesmxcp list # Show all endpointsLearn More
Section titled “Learn More”- Introduction - How MXCP works
- Core Concepts - Endpoints, types, project structure
- Configuration - Profiles, environments