Building Model Context Protocol servers — tools, resources and prompts design, JSON schemas and descriptions agents can use, transports (stdio, streamable HTTP), auth, pagination and errors, idempotency, testing with MCP clients and inspectors, versioning. Use to build or extend an MCP server (MCP server, tools, resources, tool schema, transport).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Mcp Server Development?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-mcp-server-development)
---
name: mcp-server-development
description: Building Model Context Protocol servers — tools, resources and prompts design, JSON schemas and descriptions agents can use, transports (stdio, streamable HTTP), auth, pagination and errors, idempotency, testing with MCP clients and inspectors, versioning. Use to build or extend an MCP server (MCP server, tools, resources, tool schema, transport).
metadata:
category: ai
---
# MCP server development
## Purpose
Expose capabilities to agents through precise, safe MCP tools.
**Use when:** building or extending MCP servers.
**Not for:** approving new MCP connections (ADR + security review).
## Inputs
- Capabilities to expose, consumers, security requirements.
## Outputs
- Server code, schemas, docs, tests.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "mcp server development"` for prior decisions, patterns and anti-patterns.
- [MCP review checklist](../../../checklists/mcp-review.md)
- [MCP integration](../../../integrations/mcp.md)
## Steps
1. **Tools.** Few, task-shaped tools with clear names and descriptions; read and write separated.
Done when each tool has one purpose.
2. **Schemas.** Strict input schemas; bounded outputs; pagination.
Done when invalid input rejected.
3. **Safety.** Auth, scopes, confirmations for destructive tools; mark external content as untrusted.
Done when least privilege.
4. **Test.** Client tests incl. adversarial content.
Done when tests pass.
## Best practices
- Descriptions are prompts — write them for the model.
- Return actionable errors.
## Common mistakes
- One giant tool with a mode parameter.
- Returning huge unpaginated payloads.
## Example
Incident tracker MCP: `search_incidents`, `get_incident`, `add_note` (requires confirm flag), OAuth read scope by default.
## Reusable prompt
```text
Apply the MCP server development skill (.agents/skills/mcp-server-development/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Design the tools, schemas and permissions for the MCP server and write tests including adversarial content.
Return: Server code, schemas, docs, tests..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```