Claude Code Docs Blog

Let Claude Code Build Your MCP - Reliably

Strict schemas, deterministic commands, built-in validation and testing. Reliability is enforced, not hoped for.

claude ~/my-sales-server
Claude Code
Opus 4.5 ยท ~/my-sales-server
>

Trust What Claude Code Builds

Multiple verification layers catch different types of issues, ensuring nothing slips through

Data Validation & Testing

dbt Integration

mxcp dbt test

Run dbt tests with automatic secret injection.

Endpoint Validation

Endpoint Testing

mxcp test

Run SQL and Python assertions to verify endpoint logic.

Schema Validation

mxcp validate

Verify YAML syntax, required fields, and type definitions.

Quality Assurance

LLM Evaluations

mxcp evals

Measure how well different LLM models complete tasks using your MCP server.

Metadata Linting

mxcp lint

Ensure descriptions and examples are complete.

Change Management

Drift Detection

mxcp drift-check

Catch unintended schema and endpoint modifications.

Built-in Safeguards

Secret Detection

automatic

Warns when secrets or credentials are about to be exposed.

Dangerous Operations

automatic

Alerts before destructive actions like dropping tables.

How It Works

From natural language to production-ready MCP server in one conversation

1

You Describe

Tell Claude what you need in plain English

"Create a tool that queries customer orders by email"
2

MXCP Skill Activates

Claude loads specialized knowledge automatically

  • YAML schema structure
  • CLI commands and options
  • Best practices and patterns
3

Claude Builds

Generates code using MXCP's format

  • Endpoint configuration (YAML)
  • Data queries (SQL)
  • Business logic (Python)
4

MXCP Validates

Runs checks and tests against the code

mxcp validate mxcp lint mxcp test
5

Production Ready

Your MCP server is complete and verified

  • Schema validated
  • Tests passing
  • Ready for connections

Get Started

Set up the MXCP plugin in just a few steps

1

Install Claude Code

Install Claude Code CLI if you haven't already.

npm install -g @anthropic-ai/claude-code
2

Add the Marketplace

Register the RAW Labs plugin marketplace.

/plugin marketplace add raw-labs/raw-labs-claude-marketplace
3

Install the Plugin

Install the MXCP plugin from the marketplace.

/plugin install mxcp-plugin@raw-labs-claude-marketplace
4

Restart Claude Code

The plugin will be available after restart.

5

Start Building

Ask Claude to create an MXCP server.

Frequently Asked Questions

Common questions about the MXCP Plugin for Claude Code

What is the MXCP Plugin for Claude Code?

The MXCP Plugin enables Claude Code to build production-ready MCP servers through natural conversation. It provides Claude with specialized knowledge about MXCP's YAML schema, CLI commands, and best practices, allowing it to generate, validate, and test MCP endpoints automatically.

How do I install the MXCP Plugin?

Install Claude Code CLI first (npm install -g @anthropic-ai/claude-code), then add the RAW Labs marketplace (/plugin marketplace add raw-labs/raw-labs-claude-marketplace), install the plugin (/plugin install mxcp-plugin@raw-labs-claude-marketplace), and restart Claude Code.

Do I need to know YAML or SQL to use the plugin?

No! That's the beauty of the plugin. Simply describe what you need in plain English, and Claude will generate the correct YAML configurations, SQL queries, and Python code. The plugin handles all the technical details while you focus on what you want to build.

How does the validation loop work?

When Claude generates code, it automatically runs MXCP's validation tools (mxcp validate, mxcp lint, mxcp test). If any issues are found, Claude sees the errors and fixes them automatically, continuing until everything passes. This ensures your MCP server is production-ready.

What can I build with the MXCP Plugin?

You can build MCP servers that connect to databases (PostgreSQL, MySQL, SQLite, DuckDB), ingest files (Excel, CSV, JSON), wrap APIs, and more. Common use cases include data access tools, analytics endpoints, and AI-ready data pipelines.

Is the MXCP Plugin free to use?

Yes, the MXCP Plugin for Claude Code is completely free and open source under the MIT license. You can use it without any restrictions.