ChainLens ResearchChainLens ResearchDocs
Back to app
OverviewResearch ModesData SourcesFeaturesREST APIMCP ServerFAQRefund Policy

Model Context Protocol (MCP) Server

Connect ChainLens directly to agentic environments like Claude Code, Cursor, Windsurf, or Zed. Published as an open stdio server package on npm: chainlens-research.

Client Quick Setup

Claude Code Setup

Run from your terminal:

claude mcp add chainlens-research \
  -- env CHAINLENS_API_KEY=clrs_<your-key> \
  MCP_API_URL=https://research-api.chainlens.net \
  MCP_TIMEOUT=300000

Cursor / ~/.claude.json Config

Add to config file:

"chainlens-research": {
  "command": "npx",
  "args": ["-y", "chainlens-research"],
  "env": {
    "CHAINLENS_API_KEY": "clrs_<your-key>",
    "MCP_API_URL": "https://research-api.chainlens.net",
    "MCP_TIMEOUT": "300000"
  }
}

Tools Catalog

Tool NameCapabilityLatencyRecommended Timeout
chainlens_searchRaw multi-engine web search without LLM synthesis2–10s60s
chainlens_askQ&A with web grounding — depth=fast: single-pass; depth=deep: multi-step reasoning; depth=research: exhaustive multi-source report, quality mode, 1,500+ words (60–180s, timeout ≥300s)10–180s≥120s
chainlens_wide_researchComparative matrix across up to 50 entities with citations60–120s≥300s
chainlens_contentsToken-efficient web extraction & markdown conversion from URLs2–15s60s
chainlens_code_searchHigh-signal code snippet retrieval across GitHub, docs & registries5–20s60s
chainlens_chatsList research chat sessions or read one session history (pass chatId)<5s30s
chainlens_monitorManage recurring monitors — action=create/trigger (requires monitorId for trigger), or action=list/get/delete/runs for CRUD<5–30s60s
chainlens_pulsePulse news feed (action=feed) or angle-based deep research (action=research with itemId + angleId)<5–180s≥300s (research)
chainlens_usageCredit balance (action=balance) or recent credit transactions (action=ledger, optional limit param)<5s30s
chainlens_discoverDiscover trending articles by topic (tech, ai, finance, science, security, startup) — public endpoint, no auth required<5s30s
chainlens_evidenceEvidence pack for a completed message — claims, confidence scores, source citations (messageId UUID required)<5s30s

Timeout Configuration

Crucial Timeout Setting: Most MCP clients default to a 60s timeout. Intensive tools like chainlens_ask (depth=deep), chainlens_ask (depth=research), and chainlens_wide_research perform deep multi-page crawls and synthesize large reports, which require setting MCP_TIMEOUT=300000 (5 minutes) in your MCP environment.