OpenRouter Agents MCP Server

OpenRouter Agents MCP Server

openrouter-deep-research-mcp•bywheattoast11

A production MCP server for multi-agent AI research that plans and parallelizes work and synthesizes results.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •The server provides asynchronous and synchronous research tools, parallel batch queries, context-aware follow-ups, and a unified agent entrypoint.
  • •It offers a knowledge base with hybrid BM25 and vector search, retrieval, SQL querying, report lookup, and report history.
  • •It supports session time-travel, named checkpoints, session forking, and knowledge graph exploration and ranking.

BEST FOR

  • •Multi-agent AI research and synthesis workflows.
  • •Persistent research knowledge bases across sessions.
  • •Long-running research jobs that need asynchronous status checks and follow-up queries.

ABOUT OPENROUTER-DEEP-RESEARCH-MCP

OpenRouter Agents MCP Server is cataloged as an MCP server attributed to wheattoast11. A production MCP server for multi-agent AI research that plans and parallelizes work and synthesizes results. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OpenRouter Agents MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server handle model API failures?

It uses a circuit breaker that can reject requests while open and test recovery in the half-open state.

Does the server retain research artifacts across sessions?

Reports, jobs, and the knowledge graph persist across sessions by default.

How are models chosen for research tasks?

The server routes models by matching query embeddings against model domain profiles without an LLM call.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1506d9f5a777 · 采集于 2026-11-13 08:09:49 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

OpenRouter Agents MCP Server

npm MCP Stable GitHub

Production MCP server for multi-agent AI research. Plan, parallelize, synthesize.

Install

npx @terminals-tech/openrouter-agents --stdio

Claude Code one-liner:

claude mcp add openrouter-agents -- npx @terminals-tech/openrouter-agents --stdio

What's New (v2.0.0)

  • MCP SDK 1.27.1 — registerTool/registerPrompt/registerResource APIs, security fixes
  • Zod 4 — Upgraded from Zod 3; z.record() syntax, config schema fixes
  • Express 5 — Upgraded from Express 4; modern path patterns, req.query handling
  • Streamable HTTP — Primary transport (SSE deprecated as legacy fallback)
  • Circuit breaker — Model API fault tolerance with configurable thresholds
  • Embedding-based model routing — Local vector similarity for model selection (no LLM call)
  • Persistent storage — Reports, jobs, knowledge graph persist across sessions by default

macOS/Node 25 Note: A cosmetic libc++abi: mutex lock failed message may appear on shutdown. This is harmless — data is checkpointed before shutdown. Set DB_AUTO_HEAL=true for in-memory mode (no persistence, no message).

Full Changelog | Extensions Guide | MCP Compliance Report

Configuration

Set OPENROUTER_API_KEY in your environment, then configure via .env or .mcp.json:

VariableDefaultDescription
OPENROUTER_API_KEYrequiredOpenRouter API key
OPENROUTER_API_KEYS(optional)Comma-separated OpenRouter keys for rotation
OPENROUTER_KEY_COOLDOWN_MS5000Base cooldown per key after failures
SERVER_PORT3002HTTP server port
MODEALLAGENT, MANUAL, or ALL
EMBEDDING_ROUTING_ENABLEDtrueEnable embedding-based model routing
INDEXER_ENABLEDtrueEnable knowledge indexing

Full ENV Reference

.mcp.json example (team-shareable)
{
  "mcpServers": {
    "openrouter-agents": {
      "command": "npx",
      "args": ["@terminals-tech/openrouter-agents", "--stdio"],
      "env": {
        "OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}",
        "INDEXER_ENABLED": "true"
      }
    }
  }
}

Multi-Client Setup

Transport Modes

TransportFlagUse Case
STDIO(default)MCP clients (Claude, Jan AI, Continue)
HTTP--httpWeb apps, shared server

STDIO is the default transport per MCP spec. Use --http explicitly for HTTP mode.

Client-Specific Setup

Jan AI
  1. Enable MCP Servers in Settings → Advanced → Experimental
  2. Click + to add server
  3. Configure:
    • Name: openrouter-agents
    • Command: npx
    • Arguments: @terminals-tech/openrouter-agents
    • Environment: OPENROUTER_API_KEY=sk-or-...

Note: STDIO is now default - no --stdio flag needed.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "openrouter-agents": {
      "command": "npx",
      "args": ["@terminals-tech/openrouter-agents"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-..."
      }
    }
  }
}
Continue / Zed / Other MCP Clients

Standard MCP config - STDIO is default, no flags needed:

{
  "command": "npx",
  "args": ["@terminals-tech/openrouter-agents"],
  "env": { "OPENROUTER_API_KEY": "..." }
}

Feature Matrix

FeatureAll MCP ClientsClaude Code Only
Core Research Tools✓✓
Knowledge Base✓✓
Session/Graph Tools✓✓
Rail Protocol Tools✓✓
Slash Commands-✓

Models (v2.0.0)

High-Cost Tier

ModelDomains
anthropic/claude-sonnet-4.5reasoning, technical, general, creative
anthropic/claude-opus-4.6reasoning, technical, general, creative
openai/gpt-5.2-chatreasoning, technical, general
openai/gpt-5.3-codexcoding, technical, reasoning
google/gemini-3-pro-previewreasoning, technical, general
qwen/qwen3-codercoding, editing, technical

Low-Cost Tier

ModelDomains
google/gemini-3-flash-previewcoding, editing, technical
anthropic/claude-haiku-4.5general, technical, reasoning
deepseek/deepseek-chat-v3.1general, reasoning, technical, coding
deepseek/deepseek-v3.2general, reasoning, technical, coding
openai/gpt-oss-120bgeneral, reasoning, search

Models are selected via embedding-based routing — query embeddings are matched to model domain profiles without an LLM call.

Tools

Research
ToolDescription
researchAsync research (returns job_id)
conduct_researchSync research with streaming
batch_researchParallel batch queries
research_follow_upContext-aware follow-up
agentUnified entrypoint (auto-routes)
Knowledge Base
ToolDescription
searchHybrid BM25+vector search
retrieveIndex or SQL query
querySQL SELECT with params
get_reportGet report by ID
historyList recent reports
Session & Graph
ToolDescription
undo / redoSession time-travel
checkpointNamed save points
fork_sessionCreate alternate timeline
graph_traverseExplore knowledge graph
graph_clustersFind node clusters
graph_pagerankImportance rankings
Rail Protocol
ToolDescription
list_railsList rails, tunnels, routes, consensus
explain_railDetailed rail/tunnel config
list_routesAll defined routes
list_tunnelsActive agent-to-agent tunnels
list_consensusStreaming consensus sessions
Utility
ToolDescription
pingHealth check
get_server_statusFull diagnostics
job_statusCheck async job
date_timeCurrent timestamp
calcMath evaluation
list_toolsAvailable tools

MCP Compliance

Compliant with MCP Specification 2025-11-25 (stable, AAIF/Linux Foundation governance).

FeatureSEPStatus
JSON-RPC 2.0CoreCompliant
Tools/Resources/PromptsCoreCompliant
Task ProtocolSEP-1686Compliant
Sampling with ToolsSEP-1577Compliant
ElicitationSEP-1036Compliant
MCP AppsSEP-1865Compliant
Enterprise AuthSEP-990Compliant
Client MetadataSEP-991Compliant

Full Compliance Report

Architecture

User Query
    │
    ▼
┌─────────────────┐
│  Planning Agent  │ ─── Decomposes into sub-queries
└────────┬────────┘
         │
    ┌────┴────┐
    ▼         ▼
┌───────┐ ┌───────┐
│Agent 1│ │Agent N│ ─── Parallel research (embedding-routed models)
└───┬───┘ └───┬───┘
    │         │
    ▼         ▼
┌─────────────────┐
│   Synthesizer   │ ─── Consensus + citations (Signal protocol)
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│  Knowledge Base  │ ─── PGlite + pgvector (persistent)
└─────────────────┘

Core Abstractions

ModulePurpose
Signal ProtocolInter-agent communication with confidence scoring and consensus
Rail ProtocolBidirectional channels with backpressure, provenance, tunnels
Error TaxonomyDeterministic classification with auto-learning and circuit breakers
Circuit BreakerModel API fault tolerance with configurable thresholds and auto-recovery
Parameter NormalizationDeclarative alias system (q→query, cost→costPreference)
RoleShift ProtocolBidirectional server↔client via MCP sampling/elicitation
Embedding RouterLocal vector-based model selection via @terminals-tech/embeddings

Circuit Breaker

Protects against cascading model API failures. Configurable via environment:

VariableDefaultDescription
RAIL_CIRCUIT_BREAKERtrueEnable circuit breaker
RAIL_CIRCUIT_THRESHOLD5Failures before tripping
RAIL_CIRCUIT_RESET_MS120000Recovery timeout (ms)

States: closed (normal) -> open (failing, requests rejected) -> half-open (testing recovery).

Transport (v2.0.0)

TransportStatusUse Case
Streamable HTTPPrimaryAll new integrations
SSEDeprecatedLegacy compatibility only
STDIODefaultMCP clients (Claude, Jan AI, Continue)

Releasing

Releases are automated via release-please:

  1. Push conventional commits to main (e.g. feat:, fix:, chore:)
  2. release-please opens a version-bump PR
  3. Merge the PR → GitHub Release created automatically
  4. npm publish triggers on release via CI

Manual publish:

npm test && npm publish --access public

Version: 2.0.0 | MCP SDK: 1.27.1 | MCP Spec: 2025-11-25 | Author: Tej Desai | License: MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OpenRouter Agents MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openrouter-deep-research-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent