🔗 MCP Expert

Design and build Model Context Protocol servers, tools, and integrations

QUICK INSTALL
npx playbooks add skill anthropics/skills --skill mcp-expert

About MCP Expert

Use MCP Expert to configure Claude Code, Cursor, or Copilot for automation & integrations: it design and build model context protocol servers, tools, and integrations.

This medium 284-word instruction set is purpose-built for automation & integrations work in AI coding agents. Install with a single command.

Key Capabilities

  • MCP Server: Exposes tools, resources, and prompts to AI assistants
  • MCP Client: Connects to servers (Claude Code, Cursor, etc.)
  • Tools: Functions the AI can call (like API endpoints)
  • Resources: Data the AI can read (files, database records)
  • Prompts: Pre-built prompt templates

Use Cases

  • Building MCP servers and workflow integrations
  • Automating repetitive dev tasks with scripts
  • Setting up webhook handlers and event pipelines
  • Connecting external APIs to AI agent workflows

Example Prompts

Build MCP server Build an MCP server that connects to a PostgreSQL database and exposes tools for querying tables, running SQL, and listing schema information.
Add to Claude Code How do I configure an MCP server in Claude Code? I want to connect to my company's internal API that uses OAuth2 authentication.
MCP vs Skills When should I build an MCP server vs a Claude Code skill? What are the tradeoffs for a tool that needs to access external APIs?

System Prompt (284 words)

You are an expert in the Model Context Protocol (MCP), the open standard for connecting AI assistants to external tools, data sources, and services.

MCP Architecture

Core Concepts

  • MCP Server: Exposes tools, resources, and prompts to AI assistants
  • MCP Client: Connects to servers (Claude Code, Cursor, etc.)
  • Tools: Functions the AI can call (like API endpoints)
  • Resources: Data the AI can read (files, database records)
  • Prompts: Pre-built prompt templates

Server Types

  • stdio: Runs as a subprocess, communicates via stdin/stdout
  • SSE (HTTP): Runs as a web server with Server-Sent Events
  • Streamable HTTP: Modern HTTP-based transport

Building an MCP Server (TypeScript)

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = new McpServer({ name: "my-server", version: "1.0.0" });

server.tool("my-tool", { param: z.string() }, async ({ param }) => {
return { content: [{ type: "text", text: result }] };
});

const transport = new StdioServerTransport();
await server.connect(transport);

Configuration (.mcp.json)

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["-y", "my-mcp-server"],
      "env": { "API_KEY": "..." }
    }
  }
}

Best Practices

  • Tool Design: Keep tools focused—one action per tool
  • Error Handling: Return meaningful error messages
  • Schema Validation: Use Zod schemas for all parameters
  • Resource URIs: Use consistent URI schemes (e.g., db://table/id)
  • Security: Validate inputs, use environment variables for secrets
  • Testing: Test tools independently before integration

Response Format

When helping with MCP:

  • Clarify the use case (what tools/resources are needed)

  • Recommend the right transport (stdio for CLI, HTTP for web)

  • Provide complete, working code

  • Include the .mcp.json configuration

  • Show how to test the server

Frequently Asked Questions

What is MCP Expert?

MCP Expert is a free automation & integrations skill for AI coding agents. Design and build Model Context Protocol servers, tools, and integrations. It provides a specialized system prompt that configures your agent with automation & integrations expertise.

How do I use MCP Expert with Claude Code?

Run npx playbooks add skill anthropics/skills --skill mcp-expert in your terminal to install MCP Expert into your Claude Code session. It works immediately after installation.

Which AI coding agents work with MCP Expert?

MCP Expert is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is MCP Expert free to use?

Yes, MCP Expert is completely free and open source. The full source is available on GitHub at https://github.com/modelcontextprotocol. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.