CleanFetch MCP
by techreone
README.md
# CleanFetch MCP
Local **stdio** MCP server for [CleanFetch](https://cleanfetch.dev). 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
- Cursor: [Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=cleanfetch&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsZWFuZmV0Y2gtbWNwIl0sImVudiI6eyJDTEVBTkZFVENIX0FQSV9LRVkiOiJZT1VSX0tFWSJ9fQ==) — replace `YOUR_KEY` after install.
- VS Code: [Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22cleanfetch%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cleanfetch-mcp%22%5D%2C%22env%22%3A%7B%22CLEANFETCH_API_KEY%22%3A%22%24%7Binput%3Acleanfetch-key%7D%22%7D%7D) — VS Code asks for the key once.
### Claude Code
```bash
claude mcp add cleanfetch --env CLEANFETCH_API_KEY=cf_live_your_key -- npx -y cleanfetch-mcp
```
### Cursor, Windsurf, Claude Desktop
```json
{
"mcpServers": {
"cleanfetch": {
"command": "npx",
"args": ["-y", "cleanfetch-mcp"],
"env": {
"CLEANFETCH_API_KEY": "cf_live_your_key"
}
}
}
}
```
### Codex
```toml
[mcp_servers.cleanfetch]
command = "npx"
args = ["-y", "cleanfetch-mcp"]
env = { CLEANFETCH_API_KEY = "cf_live_your_key" }
```
## Remote HTTP instead
Any client that supports Streamable HTTP can skip this package:
```json
{
"mcpServers": {
"cleanfetch": {
"type": "http",
"url": "https://api.cleanfetch.dev/mcp",
"headers": {
"x-api-key": "cf_live_your_key"
}
}
}
}
```
## Flags
```text
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
```bash
npm install
npm run build
npm test
node dist/index.js --help
```
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues