web-retrieval-mcp

v0.1.2
io.github.VelvetSP/web-retrieval-mcp Checked 2 days ago Published 6 months ago

MCP web search + tiered web fetch for AI agents (Exa, Firecrawl), SSRF-guarded, cross-platform.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
EXA_API_KEYrequired secret Exa API key (free tier at https://exa.ai)
FIRECRAWL_API_KEYrequired secret Firecrawl API key (free tier at https://firecrawl.dev)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add web-retrieval-mcp -e 'EXA_API_KEY=<EXA_API_KEY>' -e 'FIRECRAWL_API_KEY=<FIRECRAWL_API_KEY>' -- uvx --with 'mcp<2' web-retrieval-mcp==0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "web-retrieval-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "web-retrieval-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "web-retrieval-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "web-retrieval-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "EXA_API_KEY": "<EXA_API_KEY>",
        "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "EXA_API_KEY",
      "id": "exa-api-key",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "FIRECRAWL_API_KEY",
      "id": "firecrawl-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "web-retrieval-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "web-retrieval-mcp==0.1.2"
      ],
      "command": "uvx",
      "env": {
        "EXA_API_KEY": "${input:exa-api-key}",
        "FIRECRAWL_API_KEY": "${input:firecrawl-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.web-retrieval-mcp]
command = "uvx"
args = ["--with", "mcp<2", "web-retrieval-mcp==0.1.2"]
env = { "EXA_API_KEY" = "<EXA_API_KEY>", "FIRECRAWL_API_KEY" = "<FIRECRAWL_API_KEY>" }

For AI agents

  1. Ask the user for: EXA_API_KEY, FIRECRAWL_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: web_search, web_fetch.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json