Nexus MCP Server

Nexus MCP Server

nexus-openrouter-search•byadawalli

An MCP server that provides AI-powered search through the OpenRouter API using models such as Perplexity Sonar and Grok 4.

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

WHAT IT DOES

  • •Exposes a search tool that accepts a query, an optional model, max tokens, temperature, and timeout parameters.
  • •Supports multiple model tiers, including Perplexity Sonar models for real-time web search and Grok 4 for training-data knowledge.
  • •Extracts structured citations from responses and includes search metadata such as model, response time, and tokens used.
  • •Provides a configuration status resource at config://status showing server health, configuration, and tool availability.

BEST FOR

  • •Finding current web information using Perplexity Sonar real-time search models.
  • •Producing exhaustive research reports with the sonar-deep-research model.
  • •Answering questions from training-data knowledge without real-time search using Grok 4.

ABOUT NEXUS-OPENROUTER-SEARCH

Nexus MCP Server is cataloged as an MCP server attributed to adawalli. An MCP server that provides AI-powered search through the OpenRouter API using models such as Perplexity Sonar and Grok 4. 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 License. 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 Nexus 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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3f2ee1cdff1f · 采集于 2026-11-13 09:09:18 UTC

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

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

🔍 Nexus MCP Server

AI integration without the complexity

npm version NPM Downloads License: MIT TypeScript MCP Compatible CodeRabbit Pull Request Reviews

Trust Score

Intelligent AI model search and discovery with zero-install simplicity

Quick Start • Features • Documentation • Contributing


What is Nexus?

Nexus is a Model Context Protocol (MCP) server that provides AI-powered search functionality through the OpenRouter API. It integrates with MCP-compatible clients including Claude Desktop and Cursor, providing search capabilities via multiple model families including Perplexity Sonar (real-time web search) and Grok 4 (training-data knowledge).

Key Characteristics

  • Zero-install deployment: Executable via bunx (or npx) with no build requirements
  • OpenRouter integration: Multiple AI models including Perplexity Sonar (web search) and Grok 4 (training data)
  • MCP protocol compliance: Implements standard MCP tool and resource interfaces
  • Production architecture: Includes request caching, deduplication, retry logic, and error handling
  • Type-safe implementation: Full TypeScript coverage with strict type checking

Features

Deployment

  • Bunx/NPX-based execution with zero local installation
  • Cross-platform compatibility (macOS, Linux, Windows)
  • Bun 1.0+ or Node.js 18+ runtime requirement
  • Automated version updates via npm registry

Search Capabilities

  • Multiple model tiers with different capabilities:
    • sonar - Fast Q&A, real-time web search (30s timeout, standard tier)
    • sonar-pro - Multi-step queries, real-time web search (60s timeout, premium tier)
    • sonar-reasoning-pro - Chain-of-thought reasoning, real-time web search (120s timeout, premium tier)
    • sonar-deep-research - Exhaustive research reports, real-time web search (300s timeout, premium tier)
    • grok-4 - Training-data knowledge, no real-time search (60s timeout, premium tier)
  • Real-time web search with current information (Perplexity models)
  • Training-data knowledge responses (Grok 4)
  • Structured citation extraction from responses
  • Configurable model parameters (temperature, max tokens, timeout override)

Architecture

  • Comprehensive error handling with typed error classes
  • Request caching with configurable TTL
  • Request deduplication for concurrent identical queries
  • Automatic retry logic with exponential backoff
  • Winston-based structured logging
  • TypeScript strict mode implementation with full type coverage

Quick Start

Prerequisites

Quick Install

Execute the server without local installation:

# Set your OpenRouter API key
export OPENROUTER_API_KEY=your-api-key-here

# Run the server via bunx (recommended)
bunx nexus-mcp

# Or via npx
npx nexus-mcp

The server starts and listens for MCP client connections via STDIO transport.

Testing the Installation

# Test the CLI help
bunx nexus-mcp --help

# Test the version
bunx nexus-mcp --version

# Run with your API key
OPENROUTER_API_KEY=your-key bunx nexus-mcp

Alternative: Local Development Installation

For local development or customization:

  1. Clone the repository:
git clone https://github.com/adawalli/nexus.git
cd nexus
  1. Install dependencies:
bun install
  1. Build the server:
bun run build
  1. Configure your OpenRouter API key:
# Copy the example environment file
cp .env.example .env

# Edit .env and add your actual API key
# OPENROUTER_API_KEY=your-api-key-here
  1. Test the server:
bun run start

Integration with MCP Clients

Configure MCP clients to execute the server via bunx:

Claude Code

Configuration in ~/.claude/mcp_settings.json:

{
  "mcpServers": {
    "nexus": {
      "command": "bunx",
      "args": ["nexus-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

Restart Claude Code after configuration changes.

Cursor

Add server configuration in Cursor's MCP settings:

  • Name: nexus
  • Command: bunx
  • Args: ["nexus-mcp"]
  • Environment Variables: OPENROUTER_API_KEY=your-api-key-here

Restart Cursor after configuration changes.

Generic MCP Client Configuration

Standard MCP client connection parameters:

  • Transport: stdio
  • Command: bunx
  • Args: ["nexus-mcp"]
  • Environment: OPENROUTER_API_KEY=your-api-key-here

Alternative: npx or Local Installation

If you don't have Bun installed, use npx in place of bunx in any of the configurations above.

For a local installation (after following the local development setup):

{
  "mcpServers": {
    "nexus": {
      "command": "bun",
      "args": ["run", "/path/to/nexus-mcp/dist/cli.js"],
      "env": {
        "OPENROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage

Once integrated, you can use the search tool in your MCP client:

Use the search tool to find information about "latest developments in AI"

Advanced Search with Parameters

Search for "climate change solutions" using:
- Model: sonar-pro
- Max tokens: 2000
- Temperature: 0.3

Using Different Models

# Fast Q&A with real-time web search (default)
Search for "latest news" with model: sonar

# Deep research with comprehensive analysis
Search for "AI safety research" with model: sonar-deep-research

# Knowledge from training data (no web search)
Search for "explain quantum computing" with model: grok-4

Available Tools

The main search tool that provides AI-powered search capabilities.

Parameters:

  • query (required): Search query (1-2000 characters)
  • model (optional): Model to use (default: sonar)
    • sonar - Fast Q&A with real-time web search (30s timeout)
    • sonar-pro - Multi-step queries with real-time web search (60s timeout, premium)
    • sonar-reasoning-pro - Chain-of-thought reasoning with real-time web search (120s timeout, premium)
    • sonar-deep-research - Exhaustive research reports with real-time web search (300s timeout, premium)
    • grok-4 - Training-data knowledge, no real-time search (60s timeout, premium)
  • maxTokens (optional): Maximum response tokens (1-4000, default: 1000)
  • temperature (optional): Response randomness (0-2, default: 0.3)
  • timeout (optional): Override default timeout in milliseconds (5000-600000)

Example Response (Perplexity model):

Based on current information, here are the latest developments in AI...

[Detailed AI-generated response with current information]

---
**Search Metadata:**
- Model: perplexity/sonar
- Response time: 1250ms
- Tokens used: 850
- Timeout: 30000ms
- Search type: realtime
- Sources: 5 found

Example Response (Grok 4 model):

Quantum computing is a type of computation that harnesses quantum mechanics...

[Response based on training data knowledge]

---
**Search Metadata:**
- Model: x-ai/grok-4
- Response time: 3500ms
- Tokens used: 650
- Timeout: 60000ms
- Search type: training-data
- Cost tier: premium

Configuration

Environment Variables

  • OPENROUTER_API_KEY (required): Your OpenRouter API key
  • NODE_ENV (optional): Environment setting (development, production, test)
  • LOG_LEVEL (optional): Logging level (debug, info, warn, error)

Advanced Configuration

The server supports additional configuration through environment variables:

  • OPENROUTER_TIMEOUT_MS: Request timeout in milliseconds (default: 30000)
  • OPENROUTER_MAX_RETRIES: Maximum retry attempts (default: 3)
  • OPENROUTER_BASE_URL: Custom OpenRouter API base URL

Resources

The server provides a configuration status resource at config://status that shows:

  • Server health status
  • Configuration information (with masked API key)
  • Search tool availability
  • Server uptime and version

Troubleshooting

Bunx/NPX-Specific Issues

"bunx: command not found"

  • Install Bun: curl -fsSL https://bun.sh/install | bash
  • Or fall back to npx if you have Node.js 18+ installed

"npx: command not found"

  • Ensure Node.js 18+ is installed: node --version
  • Update npm: npm install -g npm@latest

"Cannot find package 'nexus-mcp'"

  • The package may not be published yet. Use local installation instead
  • Verify network connectivity for npm registry access

Slow startup on first run

  • This is normal on first run as the package is downloaded
  • Subsequent runs will be faster due to caching
  • For faster startup, use local installation instead

"Permission denied" errors with npx

  • Try: npx --yes nexus-mcp --stdio
  • Or set npm permissions: npm config set user 0 && npm config set unsafe-perm true

Common Issues

"Search functionality is not available"

  • Ensure OPENROUTER_API_KEY environment variable is set
  • Verify your API key is valid at OpenRouter
  • Check the server logs for initialization errors

"Authentication failed: Invalid API key"

  • Double-check your API key format and validity
  • Ensure the key has sufficient credits/permissions
  • Test the key directly at OpenRouter dashboard

"Rate limit exceeded"

  • Wait for the rate limit to reset (usually 1 minute)
  • Consider upgrading your OpenRouter plan for higher limits
  • Monitor usage in your OpenRouter dashboard

Connection timeouts

  • Check your internet connection
  • The server will automatically retry failed requests
  • Increase timeout if needed: OPENROUTER_TIMEOUT_MS=60000

MCP client can't connect to server

  • Verify your MCP configuration uses the correct command and arguments
  • Check that Bun 1.0+ or Node.js 18+ is available in your MCP client's environment
  • Ensure the API key is properly set in the environment variables

Debug Logging

Enable debug logging by:

For local development: Add LOG_LEVEL=debug to your .env file

For MCP clients: Add LOG_LEVEL: "debug" to the env section of your MCP configuration

This will provide detailed information about:

  • Configuration loading
  • API requests and responses
  • Error details and stack traces
  • Performance metrics

Testing Connection

You can test if the server is working by checking the configuration status resource in your MCP client, or by running a simple search query.

Development

For developers working on this server:

The published CLI bundles the MCP SDK and its runtime dependencies from bun.lock. This retains patched transitive dependencies when npm consumers already have an older dependency tree. Run bun install --frozen-lockfile before packing a release.

# Development with hot reload
bun run dev

# Run tests
bun run test

# Run tests with coverage
bun run test:coverage

# Lint code
bun run lint

# Format code
bun run format

API Costs

OpenRouter charges for API usage based on token consumption:

  • Pricing: See current rates at OpenRouter Models
  • Monitoring: Usage tracking available in OpenRouter dashboard
  • Limits: Configure spending limits in OpenRouter account settings
  • Optimization: Server implements response caching and request deduplication to minimize redundant API calls

📚 Documentation

📖 Guide🔗 Link📝 Description
Quick StartGetting StartedZero-install setup in 30 seconds
API ReferenceMCP ToolsComplete command reference
ConfigurationEnvironment SetupAdvanced configuration options
ContributingContributing GuideJoin our open source community
TroubleshootingCommon IssuesSolutions to common problems

🤝 Contributing

We welcome contributions from developers of all experience levels!

🚀 Get Started

🐛 Report Issues

💬 Join Community

🌟 Recognition

Contributors are recognized in our:

  • Contributors list
  • Release notes for significant contributions
  • Community spotlights and testimonials

📞 Support & Community

💬 Need Help?🔗 Resource
Quick QuestionsGitHub Discussions
Bug ReportsGitHub Issues
DocumentationOpenRouter Docs • MCP Specification
Feature RequestsEnhancement Proposals

📄 License

MIT License - see LICENSE file for details.


Made with ❤️ by the open source community

⭐ Star us on GitHub • 📦 View on NPM • 📚 Read the Docs

Nexus: AI integration without the complexity

Star History Chart

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 Nexus 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/nexus-openrouter-search)

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