mcp-server-building

mcp-server-building is a skill for Codex from seb1n/awesome-ai-agent-skills. It costs 81 tokens per session (1,903 once invoked), scanned A, original, MIT.

A guide for building MCP servers. MCP, or Model Context Protocol, is a standard way for an AI client to call tools and use data from another program or service.

In plain words
What is it for?
Planning, implementing, securing, and testing MCP tools, including their inputs, outputs, identity checks, transports, and allowed actions.
Why use it?
It helps connect an API, database, file system, or local process to an AI agent with clear permissions, safe communication, and predictable errors.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Planning, implementing, securing, and testing MCP tools, including their inputs, outputs, identity checks, transports, and allowed actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seb1n/awesome-ai-agent-skills/mcp-server-building
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add seb1n/awesome-ai-agent-skills --skill mcp-server-building
Clone the repo
git clone --depth 1 https://github.com/seb1n/awesome-ai-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-server-building

README.md
[![agentmods](https://agentmods.dev/badge/skills/seb1n/awesome-ai-agent-skills/mcp-server-building/github.svg)](https://agentmods.dev/skills/seb1n/awesome-ai-agent-skills/mcp-server-building)
Your own site
<a href="https://agentmods.dev/skills/seb1n/awesome-ai-agent-skills/mcp-server-building"><img src="https://agentmods.dev/badge/skills/seb1n/awesome-ai-agent-skills/mcp-server-building/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-server-building

Your own site · 80×15
<a href="https://agentmods.dev/skills/seb1n/awesome-ai-agent-skills/mcp-server-building"><img src="https://agentmods.dev/badge/skills/seb1n/awesome-ai-agent-skills/mcp-server-building.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01903
Opus 5 $0.00041 $0.00951
Sonnet 5 $0.00016 $0.00381
Haiku 4.5 $0.00008 $0.00190

Measured 13d ago against content hash 5788ba615772, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mcp-server-building scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_tool_manifest.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-engineering/mcp-server-building/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Server Building

Build the smallest server that exposes the required capability safely. Treat protocol conformance, business authorization, and model behavior as separate concerns; all three need independent controls.

Inputs

Collect or infer, and label assumptions for, these inputs:

  • User jobs and the minimum capabilities needed
  • Backing APIs, data stores, file systems, or local processes
  • Intended MCP clients, exact protocol revision, and current SDK/runtime constraints
  • Local stdio or remote HTTP transport requirements
  • Tenant, identity, credential, and authorization model
  • Read, write, destructive, billable, or externally visible effects
  • Expected volume, latency, pagination, and deployment environment
  • Existing schemas, tests, observability, and incident procedures

Ask only for missing facts that materially change the architecture. Consult the current MCP specification and SDK documentation before relying on version-sensitive behavior.

Output contract

Deliver:

  1. A server design stating scope, trust boundaries, transport, identity flow, and explicit non-goals
  2. A tool catalog with names, descriptions, structural input/output/error schemas, explicit effect and data-class arrays, authorization mode, idempotency, and error behavior
  3. Implementation or a file-level implementation plan, according to the user's requested scope
  4. Unit, integration, authorization, and protocol-interoperability tests
  5. Verification evidence: commands run, relevant results, and anything not verified
  6. Deployment, rollback, monitoring, and credential-revocation guidance
  7. Residual risks and decisions that still require an owner

Use assets/server-design-template.md when a design artifact is useful. Use scripts/validate_tool_manifest.py to lint a JSON tool manifest before implementation or review.

Workflow

1. Bound the capability

Translate the user job into a narrow set of resources, prompts, and tools. Prefer one clear operation per tool. Exclude administrative or broad pass-through operations unless the use case requires them.

Read the full file on GitHub · 125 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 125 lines · 81 tokens per session scan A 5788ba615772

Subscribe to this mod's changes

mcp-server-building is a skill published in the GitHub repository seb1n/awesome-ai-agent-skills (179 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 1,903 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

integrate-webapi

Integrates Power Pages Web API into a site's frontend code with proper permissions and deployment. Orchestrates the full integration lifecycle: code integration, table permissions setup, and deployment for Dataverse CRUD operations. Use when the user wants to add Web API calls, connect to Dataverse, or add data…

microsoft/power-platform-skills · 69 tokens

generate-codeful-mcp-tool

Generate a self-contained JavaScript server runtime and registration metadata for an MCP codeful tool. Use when the user asks to create a codeful MCP tool, generate server logic for an MCP tool, write a runTool function, build a Dataverse-backed MCP tool, or pair MCP server logic with an MCP App widget.

microsoft/power-platform-skills · 71 tokens

list-connections

Lists Power Platform connections in the current environment. Use when you need a connection ID before adding a connector to a code app.

microsoft/power-platform-skills · 29 tokens

cross-border-ecommerce

Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides…

nexscope-ai/eCommerce-Skills · 106 tokens

ecommerce-email-marketing-builder

E-commerce email marketing system builder. Creates complete email automation flows with full copywriting, subject lines, ESP setup instructions, segmentation rules, and annual campaign calendars. Generates copy-paste-ready email sequences for Klaviyo, Omnisend, Mailchimp, or any ESP. Covers welcome series, cart…

nexscope-ai/eCommerce-Skills · 159 tokens

ecommerce-growth-strategy

E-commerce growth strategy advisor. Diagnoses current business health using unit economics (CAC, LTV, AOV, contribution margin), identifies the highest-impact growth opportunities across 5 levers (traffic, conversion, AOV, retention, expansion), and builds a prioritized 90-day growth roadmap. Uses the Ansoff Matrix…

nexscope-ai/eCommerce-Skills · 175 tokens