
Nexus
STDIOMCP server providing AI-powered web search with source citations for Claude and Cursor.
MCP server providing AI-powered web search with source citations for Claude and Cursor.
AI integration without the complexity
Intelligent AI model search and discovery with zero-install simplicity
Nexus is a production-ready Model Context Protocol (MCP) server that brings AI-powered web search directly into your development environment. Get intelligent search results with proper citations in Claude Desktop, Cursor, or any MCP-compatible client - all with a single command.
npx
- no installation, no configuration
🚀 Zero-Install Simplicity
🧠 AI-Powered Intelligence
|
📚 Professional Quality
🔧 Developer Experience
|
🚀 Zero-install setup - Ready in 30 seconds!
No build steps, no dependencies, no setup required:
# Set your OpenRouter API key export OPENROUTER_API_KEY=your-api-key-here # Run the server instantly npx nexus-mcp --stdio
That's it! The server is now running and ready for MCP client connections.
# Test the CLI help npx nexus-mcp --help # Test the version npx nexus-mcp --version # Run with your API key OPENROUTER_API_KEY=your-key npx nexus-mcp --stdio
For local development or customization:
git clone https://github.com/adawalli/nexus.git cd nexus
npm install
npm run build
# Copy the example environment file cp .env.example .env # Edit .env and add your actual API key # OPENROUTER_API_KEY=your-api-key-here
npm start
The easiest way to integrate with any MCP client is using NPX:
Add this server to your Claude Code MCP settings:
Open your MCP settings file (usually ~/.claude/mcp_settings.json
)
Add the server configuration using NPX:
{ "mcpServers": { "nexus": { "command": "npx", "args": ["nexus-mcp", "--stdio"], "env": { "OPENROUTER_API_KEY": "your-api-key-here" } } } }
That's it! No installation, no build steps, no path configuration required.
Configure the server in Cursor's MCP settings:
Open Cursor settings and navigate to MCP servers
Add a new server with:
nexus
npx
["nexus-mcp", "--stdio"]
OPENROUTER_API_KEY
: your-api-key-here
Restart Cursor
For any MCP-compatible client, use these connection details:
npx
["nexus-mcp", "--stdio"]
OPENROUTER_API_KEY=your-api-key-here
If you prefer using a local installation (after following the local development setup):
{ "mcpServers": { "nexus": { "command": "node", "args": ["/path/to/nexus-mcp/dist/cli.js", "--stdio"], "env": { "OPENROUTER_API_KEY": "your-api-key-here" } } } }
Once integrated, you can use the search tool in your MCP client:
Use the search tool to find information about "latest developments in AI"
Search for "climate change solutions" using:
- Model: perplexity/sonar
- Max tokens: 2000
- Temperature: 0.3
search
The main search tool that provides AI-powered web search capabilities.
Parameters:
query
(required): Search query (1-2000 characters)model
(optional): Perplexity model to use (default: "perplexity/sonar")maxTokens
(optional): Maximum response tokens (1-4000, default: 1000)temperature
(optional): Response randomness (0-2, default: 0.7)Example Response:
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
- Sources: 5 found
OPENROUTER_API_KEY
(required): Your OpenRouter API keyNODE_ENV
(optional): Environment setting (development, production, test)LOG_LEVEL
(optional): Logging level (debug, info, warn, error)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 URLThe server provides a configuration status resource at config://status
that shows:
"npx: command not found"
node --version
npm install -g npm@latest
"Cannot find package 'nexus-mcp'"
NPX takes a long time to start
"Permission denied" errors with NPX
npx --yes nexus-mcp --stdio
npm config set user 0 && npm config set unsafe-perm true
"Search functionality is not available"
OPENROUTER_API_KEY
environment variable is set"Authentication failed: Invalid API key"
"Rate limit exceeded"
Connection timeouts
OPENROUTER_TIMEOUT_MS=60000
MCP client can't connect to server
--stdio
flag is included in your MCP configurationEnable 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:
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.
For developers working on this server:
# Development with hot reload npm run dev # Run tests npm test # Run tests with coverage npm run test:coverage # Lint code npm run lint # Format code npm run format
This server uses OpenRouter's API, which charges based on token usage:
📖 Guide | 🔗 Link | 📝 Description |
---|---|---|
Quick Start | Getting Started | Zero-install setup in 30 seconds |
API Reference | MCP Tools | Complete command reference |
Configuration | Environment Setup | Advanced configuration options |
Contributing | Contributing Guide | Join our open source community |
Troubleshooting | Common Issues | Solutions to common problems |
We welcome contributions from developers of all experience levels!
🚀 Get Started
|
🐛 Report Issues |
💬 Join Community |
Contributors are recognized in our:
💬 Need Help? | 🔗 Resource |
---|---|
Quick Questions | GitHub Discussions |
Bug Reports | GitHub Issues |
Documentation | OpenRouter Docs • MCP Specification |
Feature Requests | Enhancement Proposals |
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