Skip to main content
Glama

mcp-forge

Turn any docs URL into lean, callable MCP tools. No more pasting 1M-token API dumps into context.

Install

npx mcp-forge

Requires Node >= 20.

Related MCP server: DocsFeed MCP Server

Claude config

Add to your Claude Desktop / Claude Code MCP config:

{
  "mcpServers": {
    "forge": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

If installed globally, point args at your install path (e.g. /path/to/mcp-forge/dist/index.js). Then restart Claude.

30-sec demo

Point Forge at an OpenAPI URL, list what it forged, then call one:

forge_add({ "sourceUrl": "https://petstore3.swagger.io/api/v3/openapi.json" })
// -> { "tools": ["listPets", "getPetById", ...] }

forge_list()
// -> [{ "name": "listPets", "tokens": 312 }, ...]

forge_call({ "toolName": "getPetById", "args": { "petId": 1 } })
// -> { "status": 200, "body": "{...}", "truncated": false }

Works with OpenAPI / Swagger JSON, llms.txt, and plain HTML docs pages. Forged tools are saved to a local store and executed with timeout + truncation guards.

Why: token table

Blog-era bloat vs. forged tools (per widely cited ecosystem reports — your mileage varies by API):

Source

Tokens in context

Forge (per forged tool)

< 3K

GitHub API surface

~45K

Cloudflare API surface

~1.17M

Forge fetches the docs once, extracts lean tool definitions (method + path + args), and only the small definition enters context — never the full spec.

Token figures cite known ecosystem reports about MCP server token costs, not benchmarks run by this repo. No fake claims: measure your own API before quoting numbers.

Security notes

  • SSRF block: private/loopback/link-local hosts and non-http(s) schemes are rejected before fetch.

  • 15s timeout: both docs fetch and forged-tool execution abort after 15 seconds (AbortController).

  • 10KB truncate: execution response bodies are cut at 10,240 chars with truncated: true — context never fills with a giant dump.

  • No secrets stored: the local store holds only tool definitions (name, method, path, source URL). No API keys, tokens, or response bodies are persisted.

License

MIT.

Available Tools

3 tools
forge_addA

Fetch a docs URL (OpenAPI / llms.txt / HTML) and forge lean callable tools from it. Returns {tools: names}.

Inputs: sourceUrl (required).

forge_callB

Call a forged tool by name with args. Loads tool JSON from store then executes with timeout + truncation.

Inputs: toolName (required), args.

forge_listA

List forged tools in the local store.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: forge_add creates tools from a URL, forge_list enumerates them, and forge_call executes them. There is no overlap or ambiguity between the three operations.

    Naming Consistency5/5

    All tools share the forge_ prefix followed by a lowercase imperative verb: add, list, call. The naming is completely consistent and predictable.

    Tool Count5/5

    Three tools is appropriate for this focused server's scope: one to create tools, one to list them, and one to call them. Each tool earns its place and no extra tool is needed for the core workflow.

    Completeness4/5

    The add/list/call workflow covers the essential lifecycle of dynamically forged tools. However, there is no delete or refresh operation, so stale or outdated forged tools cannot be removed.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables users to ingest documentation from URLs or sitemaps, embed it into a searchable vector index, and expose authenticated MCP tools so AI clients can search and retrieve documentation content directly.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Provides MCP tools for checking URL accessibility, evaluating whether webpage content is recently updated, and updating markdown tables keyed by URL, letting AI agents offload deterministic tasks to code and reduce token usage.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to read public web content as clean Markdown, search a private library of previously read documents, and access these tools via MCP, REST API, CLI, and WebMCP.
      4 npm
      22
      MIT