Skip to main content
Glama

CleanFetch MCP

Local stdio MCP server for CleanFetch. It connects to the hosted CleanFetch MCP server at https://api.cleanfetch.dev/mcp with your API key, so every client sees the live catalog and charges credits on the same balance as REST.

  • One JSON envelope for public pages, media, repositories, search and trends.

  • Four context-saving tools: cleanfetch_search_endpoints, cleanfetch_call, cleanfetch_ask, cleanfetch_balance.

  • Discovery works without a key; a key is only needed when a tool spends credits.

  • Cache hits cost 0 credits. Verified not_found responses are billed once; 5xx and unconnected mapped routes cost 0.

Quick start

  1. Create a free key at https://cleanfetch.dev/settings/apikeys (30 credits on a first OAuth signup).

  2. Add the server to your client with the snippets below.

  3. Ask your agent: "Search CleanFetch for a Hacker News endpoint and fetch the top stories."

One-click install

Claude Code

claude mcp add cleanfetch --env CLEANFETCH_API_KEY=cf_live_your_key -- npx -y cleanfetch-mcp

Cursor, Windsurf, Claude Desktop

{
  "mcpServers": {
    "cleanfetch": {
      "command": "npx",
      "args": ["-y", "cleanfetch-mcp"],
      "env": {
        "CLEANFETCH_API_KEY": "cf_live_your_key"
      }
    }
  }
}

Codex

[mcp_servers.cleanfetch]
command = "npx"
args = ["-y", "cleanfetch-mcp"]
env = { CLEANFETCH_API_KEY = "cf_live_your_key" }

Related MCP server: a-source-gateway-mcp

Remote HTTP instead

Any client that supports Streamable HTTP can skip this package:

{
  "mcpServers": {
    "cleanfetch": {
      "type": "http",
      "url": "https://api.cleanfetch.dev/mcp",
      "headers": {
        "x-api-key": "cf_live_your_key"
      }
    }
  }
}

Flags

cleanfetch-mcp [--api-key cf_live_...] [--mcp-url https://api.cleanfetch.dev/mcp]

Flag

Environment

Default

--api-key

CLEANFETCH_API_KEY

required for tool calls

--mcp-url

CLEANFETCH_MCP_URL

https://api.cleanfetch.dev/mcp

--api-key exists for clients that pass an argument array and do not render an env field. Prefer the environment variable in shared configs so the key does not appear in process arguments.

Tools

Tool

What it does

Credits

cleanfetch_search_endpoints

Search 1,100+ catalog operations by keyword, platform or path

0

cleanfetch_call

Call any operation with path, query and body params

catalog price

cleanfetch_ask

Turn a plain-English question into matching endpoints

0

cleanfetch_balance

Read the key's credit balance and paid status

0

Development

npm install
npm run build
npm test
node dist/index.js --help

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to discover and call any public upAPI operation as an MCP tool, covering web search, SERP, social profiles, developer lookups, geo, and finance data, with local or hosted transport and metered quota.
      72 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to discover official public data sources, inspect their metadata and endpoint parameters, and execute live queries through a unified response envelope with a 500 ms budget.
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to discover and call paid data and tools from one catalog, including company and people enrichment, SEO/SERP data, social media data, EU business registers, LEI records, and sanctions checks, with per-call pricing and a prepaid balance.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query public social media, ad library, Google Search and Maps, reviews, app-store, and Amazon data through about 250 operations, with credit-based caching and stateless remote access.
      MIT