/context-engineering:mcp-server-devfrom context-engineering
Creates MCP servers exposing multiple tools via the Model Context Protocol. Covers Python (FastMCP) and TypeScript (@modelcontextprotocol/sdk) patterns, packaging, and testing.
Ships in context-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create multi-tool MCP servers in Python or TypeScript that follow the Model Context Protocol specification and Anthropic's tool design best practices.
An MCP server is a process that exposes one or more tools (and optionally resources and prompts) over the Model Context Protocol. Servers communicate via stdio transport — they read JSON-RPC from stdin and write responses to stdout.
MCP servers are how you package and distribute tool capabilities. An LLM client (Claude Code, Claude Desktop, etc.) starts the server process and calls its tools.
uvx or npx)mcp-tool-dev skill)| Factor | Python (FastMCP) | TypeScript (@modelcontextprotocol/sdk) |
|---|---|---|
| Distribution | uvx (uv tool) | npx |
| Type system | Type hints + docstrings | Zod schemas |
| Packaging | pyproject.toml | package.json with bin |
| Async | Native async/await | Native async/await |
| Best for | Data science, Python tooling, API wrappers | Frontend tooling, Node.js ecosystem, npm distribution |
Choose Python when the tools interact with Python libraries or you prefer pyproject.toml packaging. Choose TypeScript when targeting the npm ecosystem or when tools interact with Node.js libraries.
List every tool with its name, description, parameters, and return format. Apply the consolidation principle: prefer fewer capable tools over many narrow ones.
For each tool, write the 3-4 sentence description (what, when to use, when NOT to use, behavior notes). This is the most important step — good descriptions prevent misuse.
Use the templates as starting points:
templates/mcp-server-python-template/templates/mcp-server-typescript-template/Core directory structure:
Python:
my-server/
├── pyproject.toml # uvx entry point
├── src/my_server/
│ ├── __init__.py
│ ├── server.py # FastMCP instance + tool registration
│ └── tools/ # One file per tool or tool group
│ └── search.py
├── tests/
│ ├── conftest.py
│ └── test_tools.py
└── README.md
TypeScript:
my-server/
├── package.json # npx entry point with bin
├── tsconfig.json
├── src/
│ ├── index.ts # Entry: CLI args, transport, shutdown
│ ├── server.ts # Tool registration
│ └── tools/
│ └── search.ts
├── tests/
│ └── tools.test.ts
└── README.md
Write each tool handler following the patterns in the language-specific reference:
references/python-server-patterns.mdreferences/typescript-server-patterns.mdKey principles for all tools:
Python (uvx): Set [project.scripts] in pyproject.toml:
[project.scripts]
my-server = "my_server.server:main"
TypeScript (npx): Set bin in package.json:
{
"bin": { "my-server": "dist/index.js" }
}
Implement graceful shutdown (SIGINT/SIGTERM handling). This is critical for clean process termination when the client disconnects.
Test at three levels:
See references/server-testing-guide.md for detailed patterns.
list_capabilities tool[project.scripts] or bin entry; server can't be installedFor detailed patterns per language, see the references/ directory.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andisab/swe-marketplace --plugin context-engineering7 skills in this plugin
/agent-devUse this skill when creating or refining Claude Code sub-agent definitions. Helps design specialized AI assistants with proper YAML frontmatter, system prompts, tool access, and example-driven descriptions. Automatically invoked when user requests "create an agent", "design a sub-agent", "make a specialist", or mentions agent development. Ensures agents follow Anthropic best practices with focused responsibilities, discovery-optimized descriptions, and proper tool restrictions.
/command-devUse this skill when creating or refining custom Claude Code slash commands. Slash commands are user-invoked reusable prompts that can accept arguments, reference files, and execute bash operations. Helps design command syntax, argument handling, file references, bash execution, and frontmatter configuration. Automatically invoked when user requests "create a command", "make a slash command", "add a /command", or mentions custom command development.
/hook-devUse this skill when creating or refining Claude Code hooks. Hooks are shell commands that execute at specific lifecycle events (tool use, prompt submit, notifications, session events). Helps design event handlers for notifications, formatting, logging, feedback, and permission control. Automatically invoked when user requests "create a hook", "add automation", "event handler", "workflow automation", or mentions hook development.
/mcp-tool-devCreate MCP tools — individual tool functions exposed via Model Context Protocol. Use this skill whenever users mention MCP tools, tool handlers, tool functions, tool definitions, or want to add capabilities to an MCP server. Also use when the conversation involves designing tool schemas, writing tool descriptions, or implementing tool input validation. Covers FastMCP patterns, Anthropic tool description best practices, and testing strategies.
Activate for: - "Create an MCP tool" - "Add a tool to my MCP server" - "Write a tool handler" - "Design a tool schema" - "Implement tool input validation"
Do NOT use for: - Creating full MCP servers with multiple tools (use mcp-server-dev) - General API development without MCP - Claude Code slash commands or hooks
/plugin-devUse this skill when creating or refining Claude Code plugins. Plugins are bundled collections of agents, skills, commands, hooks, and MCP servers that provide cohesive functionality. Helps design proper directory structures, plugin.json configuration, marketplace distribution, and installation workflows. Automatically invoked when user requests "create a plugin", "bundle components", "distribute capabilities", or mentions plugin development.
/skill-devUse this skill when creating or refining Claude Code skill definitions. Skills are model-invoked capabilities that Claude activates autonomously based on context. Helps design focused skills with discovery-optimized descriptions, proper directory structures, and supporting resources. Automatically invoked when user requests "create a skill", "make a capability", "add autonomous behavior", or mentions skill development. Ensures skills follow Anthropic specifications with clear activation triggers.
Other plugins' skills for the same job