MCP server for ContextFetch: web search and LLM-ready Markdown for AI agents. Keyless free tier.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add contextfetch --env CONTEXTFETCH_API_KEY='<CONTEXTFETCH_API_KEY>' -- npx -y @contextfetch/mcp~/.codex/config.toml
[mcp_servers.contextfetch]
command = "npx"
args = ["-y", "@contextfetch/mcp"]
env = { CONTEXTFETCH_API_KEY = "<CONTEXTFETCH_API_KEY>" }
# codex mcp add contextfetch --env CONTEXTFETCH_API_KEY='<CONTEXTFETCH_API_KEY>' -- npx -y @contextfetch/mcp~/.cursor/mcp.json
{
"mcpServers": {
"contextfetch": {
"command": "npx",
"args": [
"-y",
"@contextfetch/mcp"
],
"env": {
"CONTEXTFETCH_API_KEY": "<CONTEXTFETCH_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"contextfetch": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@contextfetch/mcp"
],
"env": {
"CONTEXTFETCH_API_KEY": "<CONTEXTFETCH_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"contextfetch": {
"command": "npx",
"args": [
"-y",
"@contextfetch/mcp"
],
"env": {
"CONTEXTFETCH_API_KEY": "<CONTEXTFETCH_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"contextfetch": {
"command": "npx",
"args": [
"-y",
"@contextfetch/mcp"
],
"env": {
"CONTEXTFETCH_API_KEY": "<CONTEXTFETCH_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"contextfetch": {
"command": "npx",
"args": [
"-y",
"@contextfetch/mcp"
],
"env": {
"CONTEXTFETCH_API_KEY": "<CONTEXTFETCH_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http contextfetch https://api.contextfetch.dev/mcp --header 'x-api-key: <X_API_KEY>'~/.codex/config.toml
[mcp_servers.contextfetch]
url = "https://api.contextfetch.dev/mcp"
http_headers = { x-api-key = "<X_API_KEY>" }
# codex mcp add contextfetch --url https://api.contextfetch.dev/mcp~/.cursor/mcp.json
{
"mcpServers": {
"contextfetch": {
"url": "https://api.contextfetch.dev/mcp",
"headers": {
"x-api-key": "<X_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"contextfetch": {
"type": "http",
"url": "https://api.contextfetch.dev/mcp",
"headers": {
"x-api-key": "<X_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"contextfetch": {
"httpUrl": "https://api.contextfetch.dev/mcp",
"headers": {
"x-api-key": "<X_API_KEY>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"contextfetch": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.contextfetch.dev/mcp",
"--header",
"x-api-key:<X_API_KEY>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"contextfetch": {
"url": "https://api.contextfetch.dev/mcp",
"headers": {
"x-api-key": "<X_API_KEY>"
}
}
}
}需要的环境变量
CONTEXTFETCH_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。