Nexus (OpenRouter Search)

Nexus (OpenRouter Search)

adawalli

Provides AI-powered web search through OpenRouter's Perplexity models, delivering search results with source citations directly in MCP-compatible clients like Claude Desktop.

Provides web search capabilities through OpenRouter's Perplexity Sonar models, delivering intelligent search results with source citations for current information retrieval.

19568 views6Local (stdio)

What it does

  • Search the web with AI-powered queries
  • Get source citations with search results
  • Access real-time information through Perplexity Sonar
  • Query training data knowledge via Grok models
  • Cache and deduplicate search requests

Best for

Researchers needing current information with sourcesDevelopers building AI applications with searchAnyone using Claude Desktop who needs web search
Zero-install via bunx/npxMultiple AI model optionsProduction-ready with caching

About Nexus (OpenRouter Search)

Nexus (OpenRouter Search) is a community-built MCP server published by adawalli that provides AI assistants with tools and capabilities via the Model Context Protocol. Experience AI-powered search with Nexus using OpenRouter—intelligent results and source citations, similar to Bing by Mi It is categorized under search web, developer tools.

How to install

You can install Nexus (OpenRouter Search) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Nexus (OpenRouter Search) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

🔍 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 StartFeaturesDocumentationContributing


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

Bunx-Based Integration (Recommended)

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:

Basic Search

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

search

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"


README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
ydc-ai-sdk-integration

Integrate Vercel AI SDK applications with You.com tools (web search, AI agent, content extraction). Use when developer mentions AI SDK, Vercel AI SDK, generateText, streamText, or You.com integration with AI SDK.

2
gpt-researcher

GPT Researcher is an autonomous deep research agent that conducts web and local research, producing detailed reports with citations. Use this skill when helping developers understand, extend, debug, or integrate with GPT Researcher - including adding features, understanding the architecture, working with the API, customizing research workflows, adding new retrievers, integrating MCP data sources, or troubleshooting research pipelines.

11
ai-organizer-ui-consolidation

Build a unified, ADHD-friendly web UI that consolidates 70+ CLI tools into a beautiful liquid glass interface for the AI File Organizer. Use when creating the complete frontend application that replaces all terminal interactions with a macOS-inspired dashboard for file organization, search, VEO prompts, and system management.

9
perplexity-search

Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model's knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.

9
market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

5
zai-cli

Z.AI CLI providing: - Vision: image/video analysis, OCR, UI-to-code, error diagnosis (GLM-4.6V) - Search: real-time web search with domain/recency filtering - Reader: web page to markdown extraction - Repo: GitHub code search and reading via ZRead - Tools: MCP tool discovery and raw calls - Code: TypeScript tool chaining Use for visual content analysis, web search, page reading, or GitHub exploration. Requires Z_AI_API_KEY.

3