mcp-server-design
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when designing, implementing, reviewing or securing Model Context Protocol servers/clients, including tools, resources, prompts, FastMCP servers and agent-friendly API wrappers.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Paldom/mcp-server-skillstheir own version, first seen Aug 31, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Paldom/mcp-server-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use this skill when external capabilities should be exposed to agents through a reusable, discoverable interface rather than hard-coded …
- Distinctive: line 24
Prefer filtered, sorted and scoped operations over bulk unstructured retrieval.
- Distinctive: line 27
Use least privilege for every server and tool.
- Distinctive: line 33
When reviewing an MCP server, check capability discovery, schema clarity, transport-specific logging, least-privilege authentication, and …
- Distinctive: line 42
Add authentication, authorisation and allow-listing.
- Distinctive: line 44
Add client integration tests for discovery and execution.
- Distinctive: line 49
Do not wrap an API unchanged if it returns data the agent cannot understand.
- Distinctive: line 50
Do not expose broad filesystem, shell, database or network access by default.
- Distinctive: line 53
Prefer local servers for sensitive data and remote servers for shared scalable tools only when access control is mature.
- Very specific: line 57
Use skills_docs/security/OWASP_ASI_CROSSWALK.md for the shared risk map.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Server Design
When to use
Use this skill when external capabilities should be exposed to agents through a reusable, discoverable interface rather than hard-coded function calls. MCP is suitable for complex, evolving or enterprise tool ecosystems.
For a small fixed set of functions in one app, direct tool/function calling may be simpler.
Objective
Expose external capabilities through narrow, typed, discoverable, least-privilege MCP interfaces.
Design principles
- Expose agent-friendly capabilities, not raw legacy APIs.
- Prefer filtered, sorted and scoped operations over bulk unstructured retrieval.
- Return text, JSON or structured data that the consuming agent can parse.
- Separate resources, tools and prompts clearly.
- Use least privilege for every server and tool.
MCP source-aligned guidance
The MCP server guide distinguishes resources, tools and prompts as the three main server capability types. For stdio transports, never write logs or diagnostics to stdout because stdout carries JSON-RPC messages; send logs to stderr or files instead. Tool inputs should use explicit schemas such as JSON Schema or SDK schema helpers, with clear descriptions and examples so clients can discover and call tools safely.
When reviewing an MCP server, check capability discovery, schema clarity, transport-specific logging, least-privilege authentication, and whether the exposed operation is agent-friendly rather than a raw legacy API wrapper.
Source: Model Context Protocol — Build a server.
Procedure
- Identify the external system capability to expose.
- Decide whether it is a resource, tool or prompt.
- Design an agent-friendly schema with clear descriptions and examples.
- Add authentication, authorisation and allow-listing.
- Implement the MCP server with explicit errors and typed returns.
- Add client integration tests for discovery and execution.
- Threat-model prompt injection, data exfiltration and destructive actions.
Guardrails
- Do not wrap an API unchanged if it returns data the agent cannot understand.
- Do not expose broad filesystem, shell, database or network access by default.
- Redact secrets and sensitive data from observations.
- Require confirmation for destructive operations.
- Prefer local servers for sensitive data and remote servers for shared scalable tools only when access control is mature.
OWASP ASI mapping
Use skills_docs/security/OWASP_ASI_CROSSWALK.md for the shared risk map.
| ASI risk | MCP control |
| ASI02 Tool Misuse | Expose narrow tools with strict schemas, typed errors and documented side effects. |
| ASI03 Identity and Privilege Abuse | Enforce authentication, authorisation, tenant scoping and least-privilege credentials at the server. |
| ASI04 Agentic Supply Chain Vulnerabilities | Pin and review MCP servers, tools, prompts and dynamic discovery sources. |
| ASI07 Insecure Inter-Agent Communication | Authenticate clients, restrict discovery and version tool/resource contracts. |
Related skills
tool-use-and-function-calling— direct tool calling when MCP is unnecessaryguardrails-safety-patterns— auth, validation and least privilegeknowledge-retrieval-rag— document grounding alongside tools
References
Verification
- Tool/resource/prompt boundaries are clear.
- Schemas are typed and agent-readable.
- Discovery works from an MCP client.
- Authentication and authorisation are enforced.
- Error responses are structured.
- Security tests cover injection and unauthorised access.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

