mcp-server-builder

mcp-server-builder is a skill for Claude Code, Codex from archimedes-run/omniHarness. It costs 39 tokens per session (2,407 once invoked), scanned A, original, MIT.

A code generator for MCP servers, which are small services that provide tools an AI agent can call. It creates FastMCP server code from a description and tests the server.

In plain words
What is it for?
Use it to build tool providers backed by APIs, databases, or custom code, then check their security, required secrets, discovered tools, and test calls.
Why use it?
It avoids manually setting up server files, connecting an API or database, and checking whether the agent can discover and use the tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build tool providers backed by APIs, databases, or custom code, then check their security, required secrets, discovered tools, and test calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/archimedes-run/omniharness/mcp-server-builder
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 archimedes-run/omniHarness --skill mcp-server-builder
Clone the repo
git clone --depth 1 https://github.com/archimedes-run/omniHarness

Made for: Claude Code, 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-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/archimedes-run/omniharness/mcp-server-builder.svg)](https://agentmods.dev/skills/archimedes-run/omniharness/mcp-server-builder)
Your own site
<a href="https://agentmods.dev/skills/archimedes-run/omniharness/mcp-server-builder"><img src="https://agentmods.dev/badge/skills/archimedes-run/omniharness/mcp-server-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,407 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00039 $0.02407
Opus 5 $0.00019 $0.01203
Sonnet 5 $0.00008 $0.00481
Haiku 4.5 $0.00004 $0.00241

Measured 8d ago against content hash f8ed654deeec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mcp-server-builder scanned grade A with 1 finding 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 8d ago.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| **Never import `subprocess`, `os.system`, `os.popen`, `eval`, `exec`, `pickle`, or `ctypes`** | These are hard-blocked by the static security scanner and will permanently fail verification |
skills/public/mcp-server-builder/SKILL.md · 273 lines

How it starts

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

MCP Server Builder

Use this skill when a user asks to create, generate, or build an MCP server. OmniHarness can scaffold a fully functional FastMCP server from a description, write the source code, and run it through the automated test pipeline.

Workflow

  1. Understand the intent — identify the server name, description, template type, and any external services or secrets needed.
  2. Scaffold the code — write server.py using FastMCP following the template below. Each tool must have a clear docstring and typed parameters.
  3. Submit for testing — call mcp_build(server_id=..., source_code=...). The tool runs static security scans, checks that all required secrets are stored in the vault, starts the server in an isolated subprocess, connects the MCP client, lists the discovered tools, and test-calls each one.
  4. Report results — tell the user which tools were discovered, which test-calls passed, and whether any secrets are missing.
  5. Iterate — if errors are returned fix the code and call mcp_build again.

Do NOT write files to the sandbox for this skill. Pass the complete source code directly to mcp_build as the source_code parameter.

Project structure

A minimal MCP server consists of a single server.py file.

server.py          ← entrypoint — always named server.py
requirements.txt   ← optional — any extra pip packages beyond fastmcp

server.py skeleton

import os

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("server-name")


@mcp.tool()
def tool_name(param: str) -> str:
    """One-sentence description of what this tool does and what it returns."""
    # implementation
    return result


if __name__ == "__main__":
    _transport = os.environ.get("MCP_TRANSPORT", "stdio")
    if _transport == "sse":
        mcp.settings.host = "0.0.0.0"
        mcp.settings.port = int(os.environ.get("MCP_PORT", "8080"))
        mcp.settings.transport_security = None
        mcp.run(transport="sse")
    else:
        mcp.run()

Read the full file on GitHub · 273 lines

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. 8d ago First seen · 273 lines · 39 tokens per session scan A f8ed654deeec

Subscribe to this mod's changes

mcp-server-builder is a skill published in the GitHub repository archimedes-run/omniHarness (7 stars, last pushed 13d ago), licensed MIT. It adds 39 tokens to every session and 2,407 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nemo-evaluator-sdk

Evaluates LLMs across 100+ benchmarks from 18+ harnesses (MMLU, HumanEval, GSM8K, safety, VLM) with multi-backend execution. Use when needing scalable evaluation on local Docker, Slurm HPC, or cloud platforms. NVIDIA's enterprise-grade platform with container-first architecture for reproducible benchmarking.

davila7/claude-code-templates · 76 tokens

html-preview

A guidance skill for adding small, static HTML/CSS visual previews to Markdown when a diagram, comparison, timeline, metric display, or layout sketch would be clearer than text. It does not use JavaScript.

xerrors/Yuxi · 86 tokens

deep-research

A method for organising research that uses several sources and needs fact checking. It breaks a broad question into smaller investigations, checks important claims and combines the results into a cited report.

xerrors/Yuxi · 69 tokens

knowledge-base

A tool for searching and reading documents stored in a configured knowledge base. It can find relevant passages, open documents, locate terms, and show the knowledge base’s mind map.

xerrors/Yuxi · 54 tokens

background-task

Add or modify work that runs outside the request/response cycle — emails, document ingestion, webhooks, cleanups, scheduled jobs. Use when something is slow or fire-and-forget, or when adding a periodic/cron task. This project's queue is {{ cookiecutter.backgroundtasks }}.

vstorm-co/full-stack-ai-agent-template · 62 tokens

channel-bot

Work with messaging-channel bots (Telegram / Slack) — register a bot, route inbound messages through the AI agent, handle webhooks vs polling, or add a new channel adapter. Use when wiring chat into a messaging platform or debugging bot delivery.

vstorm-co/full-stack-ai-agent-template · 53 tokens