7 Best Claude Skills for MCP Server Development
Claude skills, commands, and agents for building MCP servers: scaffolding, tool schemas, Inspector testing, safe registration, config audits, code review, and plugins.
By Imtiaz RayhanUpdated 10 min read
On this page
- The summary table
- 1. mcp-server-scaffolder: a runnable first server
- 2. tool-definition-generator: tools the model calls correctly
- 3. mcp-server-tester: exercise the server before a client does
- 4. /add-mcp-server: register it at the right scope
- 5. mcp-config-auditor: read the config before approving it
- 6. /mcp-audit: the same audit in one call
- 7. plugin-scaffolder: ship the server with its skills
- Agents for bigger builds and security review
- Recommended MCP stacks
- Continue exploring
Start with mcp-server-scaffolder for a runnable first server, tighten each tool with tool-definition-generator, and test it with mcp-server-tester. Register it with /add-mcp-server, audit configs with mcp-config-auditor or /mcp-audit, package it with plugin-scaffolder, and have the mcp-security-reviewer agent read the source before teammates connect.
Key takeaways
- Most of an MCP server's quality lives in its tool surface: verb-object names, descriptions that say when to call a tool, and strict schemas with honest required fields and enums.
- Scaffold one good tool first; the rest of the server copies its pattern.
- Default to stdio for a local prototype, and move to Streamable HTTP only with authentication, input validation, and stateless scaling in place.
- Config and code need separate reviews: mcp-config-auditor reads the files clients load, while the mcp-security-reviewer agent reads the server's source and tool text.
- Starting a server executes its code, so the review tools never launch a third-party server without your consent.
The best Claude skills for MCP development follow a server from its first file to a shared config: scaffold it, shape its tools, test it, register it, and review it before anyone else connects. Getting a Model Context Protocol server to respond is the easy part. As the mcp-server-engineer agent's own brief puts it, the hard part is design (which capabilities to expose, and how to name and shape them so the model uses them correctly) and hardening once the server runs somewhere other than one laptop.
The seven picks below, five skills and two slash commands, cover that path in order. Two agents for larger builds and security review follow the list. If you are new to the protocol, read Building an MCP Server first; this page assumes you know what a tool, a resource, and a transport are.
The summary table
| Pick | Type | Stage | What you get |
|---|---|---|---|
| mcp-server-scaffolder | Skill | Start | Runnable skeleton with one tool, an Inspector command, and the claude mcp add line |
| tool-definition-generator | Skill | Shape the tools | Validated schemas with model-facing descriptions |
| mcp-server-tester | Skill | Test | A test run through the MCP Inspector CLI and SDK clients |
| /add-mcp-server | Command | Register | The exact registration command and a verified connection |
| mcp-config-auditor | Skill | Audit config | Findings by severity with file, line, and fix |
| /mcp-audit | Command | Audit config | The same checks over the repo and home directory in one call |
| plugin-scaffolder | Skill | Distribute | A plugin carrying the server's .mcp.json that passes claude plugin validate --strict |
1. mcp-server-scaffolder: a runnable first server
mcp-server-scaffolder turns a one-line description into a skeleton you can run. It settles where the server will live first: stdio for a local server, Streamable HTTP for a remote or shared one, with stdio as the default for a prototype and a note on how to promote it later. It matches the project's language with the official Python or TypeScript SDK, or FastMCP for Python, and slots into an existing project's package manager and conventions instead of scaffolding in isolation.
The skeleton has exactly one tool, on purpose, because the first tool sets the pattern the rest copy. It gets a verb-object name, a description written as a routing signal (what it does, what it returns, when to use it), and a strict input schema with required and optional fields, enums, and per-field descriptions; the handler is a stub with a clear TODO. The skill adds the MCP Inspector launch command (npx @modelcontextprotocol/inspector ...) and the exact claude mcp add invocation, and it states plainly that a remote server still needs authentication and input validation before production, pointing to Deploying a Remote MCP Server.
2. tool-definition-generator: tools the model calls correctly
tool-definition-generator is not specific to MCP, which is exactly why it belongs here: a tool's name, description, and input schema are the whole interface the model sees. The skill derives the schema from the real function signature, types, and docstring, or from an OpenAPI spec, and reads call sites to learn how the function is actually used.
Its rules are the ones that cut bad calls. Say what the tool does and when not to use it. Mark required fields honestly instead of making everything optional to be safe. Give each argument units and a format. Replace free strings with enums where the set is known, and add bounds and patterns where they apply. Merge or disambiguate tools that are easy to confuse. It emits the schema in the target framework's format and checks that it validates. Run it on every tool after the first so the surface stays consistent. Its own caveat stands: a good schema reduces bad calls but does not replace error handling or a human-in-the-loop gate for consequential actions.
3. mcp-server-tester: exercise the server before a client does
mcp-server-tester tests an MCP server with the MCP Inspector CLI and SDK clients. Where the scaffolder leaves you a command for opening the Inspector and calling your first tool by hand, the tester drives the server from the Inspector's command-line mode and from SDK clients, which is how you check a server again after every change to its tools. The /test-mcp-server command runs a test pass from inside a Claude Code session.
Test your own server here rather than leaving it to a reviewer. The security agent below will only start a server with your explicit consent, and when something fails to connect, the MCP troubleshooting guide covers servers that will not connect, missing tools, OAuth loops, timeouts, and truncated output.
4. /add-mcp-server: register it at the right scope
/add-mcp-server connects a server to the current project and does not call the job done until the connection is verified. It first checks how the project already configures MCP, such as a checked-in .mcp.json or per-user config, and matches that rather than adding a second mechanism. Then it picks the transport (stdio for a local child process, Streamable HTTP with a URL for a remote server) and the scope: local for a personal addition, project for a committed .mcp.json the team shares, or user for every project you open. A project-scoped server prompts each teammate to approve it before its tools activate.
Secrets travel through environment variables and are never written into .mcp.json. The command produces the exact registration line with options before the server name, for example claude mcp add --transport http --scope project linear https://mcp.linear.app/mcp, then checks status with claude mcp list and /mcp, or calls a tool through the Inspector. For third-party servers it vets provenance and pins a version first. Every flag and scope is covered in Adding MCP Servers to Claude Code.
5. mcp-config-auditor: read the config before approving it
mcp-config-auditor is read-only: it never starts a server, edits a config, or rotates a credential. It finds every MCP config the common clients load (Claude Code's .mcp.json and ~/.claude.json, Claude Desktop, Cursor, VS Code, and the Codex CLI's config.toml), normalizes the servers into one table, and checks for unpinned packages (npx -y with no version, :latest images), inline secrets in env or headers, filesystem roots at the home directory or above, remote servers over plain HTTP or without auth, duplicate tool names across servers, and tool descriptions that carry instructions to the model. It treats that last group as tool poisoning signals and rates any hit High until a person has read it.
Findings come back by severity with the file, the line, and the fix, such as a ${VAR} reference in place of a pasted token, since Claude Code expands environment variables in .mcp.json. Run it over your own server's checked-in config before asking teammates to approve it.
6. /mcp-audit: the same audit in one call
/mcp-audit runs the auditor's procedure inside Claude Code over the repository and the home directory, or over a single file or server name when you pass one; right after claude mcp add, pass the server name to audit just that entry. It orders the checks from most to least dangerous: inline secrets, poisoned descriptions, filesystem roots, unprotected remote servers, unpinned packages, auto-approval of project servers, and duplicate tool names. It marks which project files are committed and reads only the mcpServers keys from ~/.claude.json.
When a server's tool descriptions are not available without running it, the command reports them as not reviewed and names the mcp-security-reviewer agent as the next step. It ends with the single most urgent action, and credential exposure always comes first.
7. plugin-scaffolder: ship the server with its skills
Once a server works, plugin-scaffolder packages it with the skills, agents, commands, and hooks that use it. It writes .claude-plugin/plugin.json as the only file in that folder, puts .mcp.json and the component directories at the plugin root, and replaces hardcoded paths, which it names as the top cause of plugins breaking after install, with ${CLAUDE_PLUGIN_ROOT}. It tests with claude --plugin-dir, exercises the MCP connection, and finishes with claude plugin validate --strict.
Its warning applies directly to MCP: a plugin's servers receive credentials on other people's machines, so do not bundle secrets, pin any third-party server the plugin pulls in, and keep the manifest's repository field honest so users can read the source they are trusting. Claude Code plugins explains when a plugin is worth the versioning overhead.
Agents for bigger builds and security review
mcp-server-engineer takes over when the job is more than a skeleton: wrapping an API or internal service with several tools, fixing a tool surface the model misuses, or taking a stdio server remote. It maps each capability to the right primitive (tools for model-controlled actions, resources for read-only data by URI, prompts for user-invoked templates), keeps the tool count small because the model reads every schema on every call, and hardens handlers with bounded inputs, concise results, and short error messages. For remote servers it adds stateless requests and OAuth 2.1 with token scopes mapped to tools, then verifies every capability in the Inspector.
mcp-security-reviewer reads the server's source rather than its config. It reads every tool and parameter description as the model will, traces where result text comes from (a fetched web page, an email body, or a database row is untrusted content landing in the agent's context), checks file, shell, and network scope against what the tools need, inspects HTTP authentication and Origin validation, follows secrets, and flags rug-pull risk where descriptions or the tool list can change after approval. It ends with a verdict: connect, connect with constraints, or do not connect. It is read-only and does not start a server without your explicit yes in that session.
Two neighbors are worth knowing. Permission rules around MCP tools, such as an mcp__* allow or enableAllProjectMcpServers, live in settings files, and claude-settings-auditor checks those; it is also the first step in the codebase onboarding roundup for a freshly cloned repo. For the consumer side, wiring tools into your own agent loop with retries and errors fed back as observations, use the agent-tool-integration-engineer agent.
Recommended MCP stacks
To build and test your own server:
npx agentscamp add skills/mcp-server-scaffolder
npx agentscamp add skills/tool-definition-generator
npx agentscamp add skills/mcp-server-tester
npx agentscamp add commands/add-mcp-server
npx agentscamp add agents/mcp-server-engineerTo review servers before a team adopts them:
npx agentscamp add skills/mcp-config-auditor
npx agentscamp add commands/mcp-audit
npx agentscamp add agents/mcp-security-reviewerEach command installs into the current project's .claude/ directory; add -g for ~/.claude/. Manual copying, plugins, and team distribution are covered in how to install Claude skills.
When a team runs many servers, discovery and access control become a fleet problem. Connecting and Governing MCP Servers covers registries, gateways, and tool sprawl, and the MCP gateways roundup compares options including the Docker MCP Toolkit and Composio; the MCP gateway entry defines the term.
Continue exploring
- Building an MCP Server — Server anatomy, transports, and connecting a first tool to Claude Code.
- Adding MCP Servers to Claude Code — The full
claude mcp addreference: transports, scopes,.mcp.json, and OAuth. - MCP Troubleshooting — Fixes for servers that fail to connect, missing tools, OAuth loops, and timeouts.
- Skills vs MCP Servers — When a procedure belongs in a skill and when it needs a server.
- 10 Best Claude Skills for API Development — Error contracts, idempotency, pagination, and the API work behind a server's tools.
- How to install Claude skills — Every install path: manual copy, the agentscamp CLI, GitHub repos, plugins, and team distribution.
Sources and further reading
Primary documentation used to verify this guide.
- Specification — Model Context Protocol
- Tools — Model Context Protocol
- Security Best Practices — Model Context Protocol
- MCP Inspector — Model Context Protocol
- modelcontextprotocol/inspector — GitHub
- Connect Claude Code to tools via MCP — Anthropic
- Plugins overview — Anthropic
Frequently asked questions
- Can Claude Code build an MCP server for me?
- Yes. The mcp-server-scaffolder skill turns a one-line description into a runnable skeleton: it picks the SDK and transport, generates one tool with a strict schema and a routing-quality description, and adds the MCP Inspector launch command and the claude mcp add line. For a larger server, or for taking one remote with OAuth, use the mcp-server-engineer agent.
- How do I test an MCP server with Claude?
- The mcp-server-tester skill tests a server with the MCP Inspector CLI and SDK clients, and the /test-mcp-server command runs a test pass from inside a session. The scaffolder also wires an Inspector launch command so you can list and call your first tool by hand, and /add-mcp-server confirms the connection with claude mcp list and /mcp.
- How do I add an MCP server to Claude Code safely?
- Use the /add-mcp-server command. It matches the project's existing MCP configuration, chooses stdio or Streamable HTTP and the local, project, or user scope, passes secrets through environment variables instead of writing them into .mcp.json, vets and pins third-party servers, and verifies the server actually connected before calling the job done.
- What is the difference between mcp-config-auditor and the mcp-security-reviewer agent?
- mcp-config-auditor reads configuration only: unpinned packages, inline secrets, wide filesystem roots, unprotected remote servers, duplicate tool names, and suspicious tool text it can find without running anything. The mcp-security-reviewer agent reads the server's source: every tool description, what result text carries back, file, shell, and network scope, HTTP authentication, secrets handling, and rug-pull risk. It ends with a connect, connect-with-constraints, or do-not-connect verdict.
- Should I build an MCP server or write a Claude skill?
- Skills inject a procedure into Claude's context; MCP servers expose tools and live data over a protocol. If the job is knowing how to do something, write a skill. If it needs to call an API or read a system Claude cannot otherwise reach, build a server. Many setups combine both.
Filed under
claude-skills · mcp · mcp-servers · tool-calling · security · best-of
Related
- MCP Server TesterTest an MCP server end to end. First detect its protocol era (stateless 2026-07-28, or a session-based 2025-era server with the initialize handshake), then drive it with the MCP Inspector v2 CLI using --format json and exit codes: tools/list with --strict schema checks, one safe tools/call, and an error-path call that must come back as isError. Then write automated tests with the official v2 SDK clients for TypeScript or Python. Use after changing a server's tools, before connecting a server to a client, or when adding MCP tests to CI.
- Test MCP ServerRun MCP Inspector CLI checks against an MCP server given as a launch command or URL: detect its protocol era, list tools with --strict, call one safe tool, call it with bad arguments, and report pass or fail per check with exit codes.
- Connecting and Governing MCP Servers: Registries, Gateways, and Tool SprawlAs MCP servers multiply, discovery, trust, and tool sprawl become the problem. How registries, gateways, and curation keep a growing fleet secure and usable.
- MCP (Model Context Protocol)MCP is the open standard for connecting AI models to external tools and data: write one server, and any MCP client — Claude Code, IDEs, agents — can use it.
- MCP Config AuditorAudit the MCP server configuration files a repository or machine actually loads (.mcp.json, any mcpServers block in .claude/settings*.json or managed settings, claude_desktop_config.json, .cursor/mcp.json, .vscode/mcp.json, Codex config.toml) for packages pulled without a pinned version, secrets written inline in env or headers, filesystem servers rooted too high, remote servers reached over plain HTTP or without auth, tool names that duplicate or shadow each other across servers, and tool descriptions that carry instructions to the model, then report each finding with the file, the line, and the fix. Read-only. Use before approving a repository's checked-in servers or after adding one.
- MCP Security ReviewerUse this agent to review an MCP server's source code and tool definitions, not just its config, for prompt-injection and tool-poisoning risk: instructions to the model hidden in tool or parameter descriptions, tool results that pass untrusted content (web pages, emails, database rows) to the model unlabeled, file, shell, and network scope wider than the tools need, HTTP transports with no authentication or origin checks, secrets handling, and rug-pull risk where descriptions or the tool list can change after approval. Read-only; it reports each finding with a severity and a fix and ends with a connect or do-not-connect verdict. Examples: "review this MCP server before we add it to the team config", "is this community server safe to connect", "check our own server's tool descriptions for injection surface".
- Tool Poisoning (MCP)Tool poisoning is an MCP attack in which malicious instructions hidden in a tool's description steer the model without the user seeing them.
- Adding MCP Servers to Claude Code: Local, Remote, and Project-ScopedThe complete claude mcp add reference — stdio vs HTTP transports, local/project/user scopes, .mcp.json with env expansion, OAuth via /mcp, and the gotchas.