
Nexus MCP Server
A production-ready Model Context Protocol server that brings AI-powered web search directly into development environments, providing intelligent search results with proper citations in Claude Desktop, Cursor, or any MCP-compatible client.
README
<!-- markdownlint-disable MD033 MD041 -->
<div align="center">
🔍 Nexus MCP Server
AI integration without the complexity
Intelligent AI model search and discovery with zero-install simplicity
Quick Start • Features • Documentation • Contributing
</div>
🚀 What is Nexus?
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.
Why Nexus?
- 🎯 Zero Setup: Ready in 30 seconds with
npx
- no installation, no configuration - 🧠 AI-Powered: Uses Perplexity Sonar models for intelligent, current web search
- 📚 Source Citations: Get authoritative sources with every search result
- 🔧 Developer-First: Built for developers who want AI capabilities without complexity
- ⚡ Production-Ready: Enterprise-grade reliability with comprehensive error handling
✨ Features
<table> <tr> <td width="50%">
🚀 Zero-Install Simplicity
- Ready in 30 seconds with
npx
- No dependencies or build steps
- Cross-platform compatibility
- Always up-to-date
🧠 AI-Powered Intelligence
- Perplexity Sonar model integration
- Real-time web content search
- Context-aware result ranking
- Multiple model options
</td> <td width="50%">
📚 Professional Quality
- Source citations and metadata
- Comprehensive error handling
- Production-grade reliability
- TypeScript implementation
🔧 Developer Experience
- MCP protocol compliance
- Extensive documentation
- Configurable parameters
- Community support
</td> </tr> </table>
🏃♂️ Quick Start
🚀 Zero-install setup - Ready in 30 seconds!
Prerequisites
- Node.js 16 or higher
- An OpenRouter API key (get one at OpenRouter)
Zero-Config Installation
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.
Testing the NPX Installation
# 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
Alternative: Local Development Installation
For local development or customization:
- Clone the repository:
git clone https://github.com/adawalli/nexus.git
cd nexus
- Install dependencies:
npm install
- Build the server:
npm run build
- 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
- Test the server:
npm start
Integration with MCP Clients
🚀 Quick Setup with NPX (Recommended)
The easiest way to integrate with any MCP client is using NPX:
Claude Code
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"
}
}
}
}
- Restart Claude Code
That's it! No installation, no build steps, no path configuration required.
Cursor
Configure the server in Cursor's MCP settings:
-
Open Cursor settings and navigate to MCP servers
-
Add a new server with:
- Name:
nexus
- Command:
npx
- Args:
["nexus-mcp", "--stdio"]
- Environment Variables:
OPENROUTER_API_KEY
:your-api-key-here
- Name:
-
Restart Cursor
Other MCP Clients
For any MCP-compatible client, use these connection details:
- Transport: stdio
- Command:
npx
- Args:
["nexus-mcp", "--stdio"]
- Environment Variables:
OPENROUTER_API_KEY=your-api-key-here
Alternative: Local Installation
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"
}
}
}
}
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: perplexity/sonar
- Max tokens: 2000
- Temperature: 0.3
Available Tools
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
Configuration
Environment Variables
OPENROUTER_API_KEY
(required): Your OpenRouter API keyNODE_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
NPX-Specific Issues
"npx: command not found"
- Ensure Node.js 16+ 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
NPX takes a long time to start
- This is normal on first run as NPX downloads the package
- 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 the
--stdio
flag is included in your MCP configuration - Check that Node.js 16+ 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:
# 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
💰 API Credits and Costs
This server uses OpenRouter's API, which charges based on token usage:
- Perplexity Sonar models: Check current pricing at OpenRouter Models
- Usage monitoring: Track consumption through the OpenRouter dashboard
- Cost control: Set usage limits in your OpenRouter account
- Optimization: Nexus includes built-in rate limiting and intelligent caching
📚 Documentation
<div align="center">
📖 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 |
</div>
🤝 Contributing
We welcome contributions from developers of all experience levels!
<table> <tr> <td width="33%">
🚀 Get Started
- Fork the repository
- Read our Contributing Guide
- Check out good first issues
</td> <td width="33%">
🐛 Report Issues
</td> <td width="33%">
💬 Join Community
</td> </tr> </table>
🌟 Recognition
Contributors are recognized in our:
- Contributors list
- Release notes for significant contributions
- Community spotlights and testimonials
🔗 Related Projects
- Model Context Protocol - The standard we implement
- OpenRouter - Our AI model provider
- Claude Desktop - Primary MCP client
- Cursor - AI-powered code editor with MCP support
📞 Support & Community
<div align="center">
💬 Need Help? | 🔗 Resource |
---|---|
Quick Questions | GitHub Discussions |
Bug Reports | GitHub Issues |
Documentation | OpenRouter Docs • MCP Specification |
Feature Requests | Enhancement Proposals |
</div>
📄 License
MIT License - see LICENSE file for details.
<div align="center">
Made with ❤️ by the open source community
⭐ Star us on GitHub • 📦 View on NPM • 📚 Read the Docs
Nexus: AI integration without the complexity
</div>
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。