mcp-server
/mcp-server
Scaffolds and reviews Model Context Protocol (MCP) servers in Python (FastMCP) or TypeScript, with well-described tools, input validation, read/write separation and safe error handling. Use when building an MCP server or exposing an API or database to Claude.
- Author
- market0v0 ↗
- Repository
- shipkit ↗
- Licence
- MIT
- Last repository change
- 29.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Scaffolds and reviews Model Context Protocol (MCP) servers in Python (FastMCP) or TypeScript, with well-described tools, input validation, read/write separation and safe error handling. Use when building an MCP server or exposing an API or database to Claude.
Original author description
Scaffolds and reviews Model Context Protocol (MCP) servers in Python (FastMCP) or TypeScript, with well-described tools, input validation, read/write separation and safe error handling. Use when building an MCP server or exposing an API or database to Claude.
How it works
- Tool design
- Python (FastMCP) skeleton
- Safety checklist
- Test it
SKILL.md preview
---
name: mcp-server
description: Scaffolds and reviews Model Context Protocol (MCP) servers in Python (FastMCP) or TypeScript, with well-described tools, input validation, read/write separation and safe error handling. Use when building an MCP server or exposing an API or database to Claude.
---
# Building an MCP server
An MCP server is an API whose user is a model. Design every tool so a model can pick it correctly from its name and description alone.
## Tool design
- **One job per tool**, named as an action: `search_invoices`, `get_shipment`, `approve_refund`.
- **Descriptions say when to use it**, what it returns, and its limits: "Search invoices by customer or status. Returns at most 50, newest first."
- **Typed, validated inputs** with sensible defaults and bounds (page size, date ranges). Reject bad input with a message the model can act on.
- **Separate reads from writes.** Writes are their own tools, require explicit IDs, are idempotent, and return what changed.
- **Return compact, structured results** (IDs, key fields, totals), not whole documents. Offer a `get_*` tool for detail.
- **Errors explain the fix:** "No customer 'acme'. Did you mean 'Acme Corp' (id 42)?" beats a stack trace.
## Python (FastMCP) skeleton
```python
from fastmcp import FastMCP
from pydantic import Field
mcp = FastMCP("ops-data")
@mcp.tool
def search_invoices(
customer: str | None = None,
status: str | None = Field(None, description="open, paid or void"),
limit: int = Field(20, ge=1, le=50),
) -> list[dict]:
"""Search invoices by customer and/or status. Newest first, at most 50."""
query = {k: v for k, v in {"customer": customer, "status": status}.items() if v}
return [compact(doc) for doc in db.invoices.find(query).sort("issued_at", -1).limit(limit)]
if __name__ == "__main__":
mcp.run() # stdio by default; mcp.run(transport="http") for remote use
```
## Safety checklist
- Credentials come from environment variables, never tool arguments or code.
- Database access uses a least-privilege user; read-only servers get a read-only user.
- Cap result sizes and query costs; never pass model input into raw query strings.
- Log every write tool call with its arguments and result.
## Test it
Run the MCP Inspector (`npx @modelcontextprotocol/inspector`) against the server, call each tool with good and bad input, then add it to Claude Code with `claude mcp add` and try real requests.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · market0v0/shipkit | 100 | MIT |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| rrezartprebreza/spring-boot-skills | 100 | MIT |
| rrezartprebreza/spring-boot-skills | 100 | MIT |
| lynricsy/hyperskills | 100 | MIT |
| saschb2b/skills | 100 | MIT |
| hoblin/claude-ruby-marketplace | 100 | MIT |
| Amey-Thakur/AI-SKILLS | 90 | MIT |
Database snapshot: 13.11.2026 · package version 95bb85c39cac (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100mcp-server-building-python-sdk
Use this skill when building asynchronous Python MCP servers using the official mcp package or FastMCP framework. - 95building-python-mcp-servers
Builds robust Python MCP (Model Context Protocol) servers with FastMCP — tool design, error contracts, event-loop-safe blocking work, subprocess/CLI wrapping, single-file vs packaged distribution, global-state-free testing, and prompt-injection awareness. Use when writing an MCP… - 100mcp-builder
Use when building an MCP server in Python (FastMCP) or Node/TypeScript (MCP SDK) — agent-centric tool design, input schemas, error handling, and the 10-question evaluation harness. - 100fastmcp
Build, test, inspect, install, and deploy MCP servers with FastMCP in Python. Use when creating a new MCP server, wrapping an API or database as MCP tools, exposing resources or prompts, or preparing a FastMCP server for Claude Code, Cursor, or HTTP deployment. - 100mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). - 100mcp-builder
Scaffolds and ships MCP servers in Python (FastMCP) or TypeScript (@modelcontextprotocol/sdk) — tools designed around workflows rather than raw endpoints, with model-guiding schemas and error messages, pagination, a direct-call test harness, and wiring into .mcp.json or claude…