mcp-builder

mcp-builder is a skill for Claude Code, Codex from ldclabs/anda-bot. It costs 40 tokens per session (637 once invoked), scanned A, original, Apache-2.0.

A guide and implementation workflow for building a Model Context Protocol server. MCP is a standard way for an AI application to discover and call tools provided by another program or service.

In plain words
What is it for?
Use it to expose an API or local service to an AI assistant through tools, using either a local process connection or a web connection.
Why use it?
A server can expose the wrong inputs, leak credentials, mix protocol messages with diagnostics, or behave differently across connection types. This helps design, implement, and test the server interface correctly.

Skill for Claude CodeCodex

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

Good fit Use it to expose an API or local service to an AI assistant through tools, using either a local process connection or a web connection.

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

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-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/ldclabs/anda-bot/mcp-builder/github.svg)](https://agentmods.dev/skills/ldclabs/anda-bot/mcp-builder)
Your own site
<a href="https://agentmods.dev/skills/ldclabs/anda-bot/mcp-builder"><img src="https://agentmods.dev/badge/skills/ldclabs/anda-bot/mcp-builder/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-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/ldclabs/anda-bot/mcp-builder"><img src="https://agentmods.dev/badge/skills/ldclabs/anda-bot/mcp-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 637 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.
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.00040 $0.00637
Opus 5.5 $0.00016 $0.00255
Sonnet 5.5 $0.00008 $0.00127
Haiku 4.5 $0.00004 $0.00064

Measured 2d ago against content hash e8d06d5ba452, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-builder 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/connections.py, scripts/evaluation.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.

skills/mcp-builder/SKILL.md · 40 lines

How it starts

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

Build an MCP server for Anda

Start with the operations the user needs, the data they may access and the expected results. Inspect the existing project and lockfile. Use stdio for a local process or Streamable HTTP for a service endpoint. On stdio, send diagnostics to stderr so stdout carries only protocol messages.

Implement the tools

Read relevant package files through skills_read with skill set to mcp-builder and the relative resource path. Follow next_cursor until complete. Match examples to the SDK version in the project.

Use action-oriented names and precise descriptions. Distinguish read-only and mutating operations in their annotations. Narrow the service credentials to the operations requested. For large results, return a bounded page and a continuation token.

Inspect the actual schema returned by tools/list. For Anda's model-facing inputs and structured outputs, use a single object, declare its properties and required fields, and set additionalProperties to false for strict objects. Represent optional inputs with required nullable fields, e.g. "type": ["string", "null"]. Express alternatives with an enum discriminator and validate the selected fields in the handler. Check for oneOf, anyOf and allOf anywhere in the emitted schema, including SDK-generated nested definitions.

Verify the integration

Build the server and exercise initialization, tool listing, one representative read and an invalid request with an SDK client or MCP Inspector. Check error responses and pagination. Use a fixture or test account when exercising a write.

If the user wants the server registered in Anda, use an absolute executable or entrypoint path that the daemon can resolve and register the intended transport. For example:

anda mcp add example -- node /absolute/path/to/dist/index.js
# For a remote server instead:
anda mcp add example-remote --url https://example.com/mcp
anda mcp tools example

Read the full file on GitHub · 40 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. 2d ago First seen · 40 lines · 40 tokens per session scan A e8d06d5ba452

Subscribe to this mod's changes

mcp-builder is a skill published in the GitHub repository ldclabs/anda-bot (27 stars, last pushed 3d ago), licensed Apache-2.0. It adds 40 tokens to every session and 637 once invoked, about $0.0002 per session on Opus 5.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-11-28.

Related

mcp-builder compared with skills from other repositories

mcp-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-builderldclabs/anda-botSkill273d agoApache-2.0A40Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3k3d agoMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6825d agoMITA105Claude Code, Codex