/unofficial-mcp-builder:create-mcp-from-api-docsfrom unofficial-mcp-builder
Build an unofficial MCP server for a third-party API that doesn't ship one, starting from the vendor's API documentation and (optionally) a working API key used to verify the real surface before any code is written. Produces a publishable npm package plus a committed api-surface.yaml recording what was verified live versus taken on the docs' word. Use for "write an MCP for <service>", "there's no official MCP for X", "wrap this API as an MCP", "generate an MCP from these docs / this OpenAPI spec".
Ships in unofficial-mcp-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The documentation is a starting hypothesis, not a specification. Where a key is available, the API itself is the source of truth and the docs are a lead to be checked. This skill front-loads that verification so the generated server reflects the API as it behaves, and records the difference.
Before anything else:
npm search "<service> mcp", and the @modelcontextprotocol and
vendor scopes) and GitHub for an existing server.If something exists, say so with the link and ask whether to contribute there, fork it, or proceed anyway. Building a fourth redundant wrapper is rarely the right outcome. If proceeding, note in the README how this one differs.
Ask for whatever isn't already provided:
bash scripts/find-spec.sh <docs-url> /tmp/<api>-spec
tries the well-known paths (/openapi.json, /swagger.json, /v3/api-docs, …)
and greps the docs page's JS bundles. Redoc, Swagger UI, Scalar and Stoplight
load the spec from JS, so a docs site with no download link often still has one
(morning/Green Invoice's developers.morning.co/docs/openapi.bundled.json was
found that way). Follow redirects from old docs URLs first. Failing that, try
APIs.guru (https://api.apis.guru/v2/list.json) and the Postman public network,
and check whether a collection is by the vendor or a community member. Commit
the spec as spec/<vendor>-openapi.json; it is the baseline
revalidate-api-surface diffs against.If no key is offered, proceed docs-only: everything gets evidence: docs, and
the README says plainly that the server is unverified against a live API.
Fetch the docs with fetch_markdown / fetch_json, or tavily_crawl for a
multi-page docs site. Save the raw fetch under docs/upstream/ in the new repo
and record each source with its date and a hash in api-surface.yaml — the
hashes are what revalidate-api-surface diffs against later.
Copy templates/api-surface.yaml from this plugin into the new repo and fill in
what the docs claim: base URL, auth mechanism, endpoints, parameters, response
shapes, pagination style, rate limits, error format. Everything is
evidence: docs at this stage.
Flag the things docs habitually get wrong, so step 3 targets them: default and maximum page sizes, which parameters are genuinely required, date/time formats and timezone handling, whether IDs are strings or integers, nullability, and whether errors come back as HTTP status codes, a body field, or both.
With a key, and only with the user's agreement to spend calls against it:
Bearer vs raw),
and whether the key belongs in a header or a query param.scopes_observed.Write-side endpoints (POST/PATCH/PUT/DELETE) are not exercised here.
They're recorded from the docs, marked evidence: docs, and left for
smoke-test-mcp, which asks per operation.
Rules for this phase, which apply throughout:
Update api-surface.yaml as you go: promote verified entries to
evidence: live with today's date, and record every place the API disagreed
with its documentation under known_discrepancies. That list is the most
valuable output of this step.
The endpoint list is not the tool list. See
reference/server-conventions.md for the full house style; the load-bearing
parts:
action enum beats five tools.
A 40-endpoint API should land at roughly 5–12 tools. Every tool description
is loaded into every conversation's context, so the surface is a budget.Show the proposed tool list to the user before generating code.
Follow reference/server-conventions.md: TypeScript, @modelcontextprotocol/sdk,
zod schemas, stdio by default with streamable HTTP as an option, a thin typed
HTTP client, and one module per resource. Non-negotiables:
Write the README as documentation of an unofficial server: state that it's
unaffiliated with the vendor, which API version it was verified against, the
date, and link api-surface.yaml for what's verified versus assumed.
smoke-test-mcp for the first real end-to-end check.reference/npm-publishing.md when the user asks — never
unprompted, and never to a name that squats a vendor's namespace.A repo containing the server, api-surface.yaml, docs/upstream/, a README,
and a summary to the user covering: the tool surface and why it was grouped that
way, what was verified live versus taken from docs, every discrepancy found, and
what remains untested.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/complementary-pluginsList and install plugins that complement unofficial-mcp-builder: browser-data-capture, site-skill-builder. Use on "related plugins"./revalidate-api-surfacePeriodic drift check for an unofficial MCP server — re-fetch the vendor's current API documentation, diff it against the committed api-surface.yaml, and update the server for anything that changed upstream. Catches new endpoints, renamed or removed fields, changed defaults, deprecations, and auth changes before users hit them as bugs. Use for "check if the API changed", "revalidate the MCP", "is this server still in sync", scheduled maintenance runs, or after a vendor changelog entry./smoke-test-mcpExercise an unofficial MCP server end-to-end against the live third-party API using the user's own key — connect, list tools, run real read operations unattended and write operations with per-operation confirmation, then fix whatever breaks. Proactive debugging: finds the schema mismatches, pagination bugs, and error-handling gaps that only appear against real data. Use for "smoke test the MCP", "does this server actually work", "test it against the real API", after a build or a revalidation, or before publishing.unofficial-mcp-builder@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin unofficial-mcp-builder