MCP搜索服务器

ContextWire 是一个托管式 MCP 服务器,为 AI 代理提供覆盖 105 个搜索引擎的网页搜索、学术研究、内容提取等功能,适用于实时信息检索与事实问答场景。

  • by keptlive
  • 本地部署
  • 5 星标
  • 更新于
在 GitHub 查看 keptlive/contextwire-mcp

使用说明

ContextWire MCP Server

A Model Context Protocol server that gives AI agents access to web search across 105 engines, academic research, content extraction, and more.

94.3% accuracy on SimpleQA benchmark.

Quick Setup

Add to your MCP client config (Claude Desktop, Claude Code, Cursor, etc.):

{
  "mcpServers": {
    "contextwire": {
      "url": "https://contextwire.dev/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

No local server needed — it's a hosted MCP endpoint.

Tools

Tool Description
ask Ask a factual question → synthesized answer with sources
search Web search with selectable search profiles
extract Extract clean text/markdown from a URL
research Search academic papers (arXiv, PubMed, Semantic Scholar, etc.)
batch_search Run multiple searches in parallel

Search Profiles

Profile Engines Best for
web Google, Bing, DDG, Wikipedia General search
news Google News, Bing News Current events
academic arXiv, PubMed, Semantic Scholar Research papers
code GitHub, StackOverflow Programming
devnews Hacker News, Lobsters, Reddit Developer news
finance Yahoo Finance, market data Financial data
repos GitHub, GitLab Code repositories
packages npm, PyPI, crates.io Package search
security CVE databases Security advisories
social Reddit, Twitter Social media
reference Wikipedia, Wiktionary Reference material
images Google Images, Bing Images Image search
videos YouTube, Vimeo Video search
all All configured engines Maximum coverage

These names come from the API reference and are not an exhaustive live inventory. Use authenticated GET /api/profiles for current profiles and engine configurations.

API Examples

Ask a question

curl --get "https://contextwire.dev/api/ask" \
  -H "Authorization: Bearer YOUR_KEY" \
  --data-urlencode "q=Who invented the transistor?"

Search with profiles

curl "https://contextwire.dev/api/search?q=rust+async+tutorial&profile=code" \
  -H "Authorization: Bearer YOUR_KEY"

Extract a page

curl "https://contextwire.dev/api/extract?url=https://example.com&format=markdown" \
  -H "Authorization: Bearer YOUR_KEY"

Free Tier

  • 1,000 queries/month — no credit card required
  • BYOK supported — bring your own LLM key to save credits
  • LLM availability and charges depend on the selected model and provider.

Get your API key at contextwire.dev.

Node.js usage

The advertised @contextwire/sdk package is not currently available on the public npm registry, and its repository is private. Use the HTTP API directly:

const url = new URL('https://contextwire.dev/api/ask');
url.searchParams.set('q', 'Who invented the transistor?');
const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.CONTEXTWIRE_API_KEY}` }
});
if (!response.ok) throw new Error(`ContextWire HTTP ${response.status}`);
console.log(await response.json());

Requires Node.js with built-in fetch and a ContextWire API key.

Links

License

MIT