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

TutorialDescription
SQL EndpointsQuery databases, aggregate data
Python EndpointsComplex logic, API calls, ML models
Hello World Deep DiveStep-by-step first tool walkthrough

Add Enterprise Features

FeatureDescription
AuthenticationOAuth with GitHub, Google, etc.
PoliciesFine-grained access control
Audit LoggingTrack all operations

Ensure Quality

ToolDescription
ValidationVerify endpoint correctness
TestingUnit tests for your tools
LintingImprove 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