An MCP client for Cursor that uses OpenRouter.ai to access multiple AI models. Requires an OpenRouter API key.
A Model Context Protocol (MCP) client for Cursor that utilizes OpenRouter.ai to access multiple AI models.
This client provides access to all models available on OpenRouter, including:
The easiest way to install is to use the setup script:
# Clone the repository
git clone https://your-repo-url/openrouter-mcp-client.git
cd openrouter-mcp-client
# Run the installation script
node install.cjs
The script will:
.env
file with your OpenRouter API keyIf you prefer to install manually:
# Clone the repository
git clone https://your-repo-url/openrouter-mcp-client.git
cd openrouter-mcp-client
# Install dependencies
npm install
# Copy environment file and edit it with your API key
cp .env.example .env
# Edit .env file with your OpenRouter API key
# Build the project
npm run build
Edit the .env
file with your OpenRouter API key and default model:
OPENROUTER_API_KEY=your_api_key_here
OPENROUTER_DEFAULT_MODEL=google/gemini-2.5-pro-exp-03-25:free
Get your API key from OpenRouter Keys.
To use this client with Cursor, you need to update Cursor's MCP configuration file:
Find Cursor's configuration directory:
%USERPROFILE%\.cursor\
~/.cursor/
~/.cursor/
Edit or create the mcp.json
file in that directory. Add a configuration like this:
{
"mcpServers": {
"custom-openrouter-client": {
"command": "node",
"args": [
"FULL_PATH_TO/openrouter-mcp-client/dist/index.js"
],
"env": {
"OPENROUTER_API_KEY": "your_api_key_here",
"OPENROUTER_DEFAULT_MODEL": "google/gemini-2.5-pro-exp-03-25:free"
}
}
}
}
Replace FULL_PATH_TO
with the actual path to your client installation.
Restart Cursor
Select the client by:
Uncomment the test functions in src/index.ts
to test direct API interaction:
// Uncomment to test the direct API
testDirectApi().catch(console.error);
testMultiModelCompletion().catch(console.error);
Then run:
npm start
# Watch mode for development
npm run dev
Important: This project requires Node.js v18.0.0 or later. If you're using an older version, you will see EBADENGINE warnings and may encounter errors. To check your Node.js version:
node --version
If you have an older version, download and install the latest LTS version from nodejs.org.
If you encounter errors related to ES modules vs CommonJS:
"type": "module"
in package.json)node install.cjs
If Cursor doesn't seem to connect to your client:
mcp.json
is correct and uses forward slashesnpm run build
You can deploy this MCP client to Smithery to make it available to various AI agents and applications.
Fork this repository to your GitHub account
Sign in to Smithery at smithery.ai using your GitHub account
Add a new server:
Deploy your server:
After deployment, users can access your server through the Smithery registry:
Choose the approach that best fits your needs.
An MCP server for generating images using the Pollinations AI API.
Orchestration tool for managing multiple MCP servers with a Docker Compose-style interface and a unified HTTP proxy.
Control emulators by opening/closing apps, capturing screenshots, and interacting with the screen.
A tool for managing Supervisord processes, integrated with AI agents via the Model Context Protocol (MCP). It offers standardized process control, real-time monitoring, and robust operations.
An example of deploying a remote MCP server on Cloudflare Workers without authentication.
A flexible MCP server that executes arbitrary command-line tools defined in a configuration file.
An AI-powered server that facilitates feature discussions between developers and AI, acting as a lead developer to guide implementation and architectural decisions.
Enhances large language models with protein structure analysis capabilities, including active site analysis and disease-protein searches, by connecting to the RCSB Protein Data Bank.
Interact with Ethereum-compatible smart contracts using their ABI.
An autonomous agent that integrates large language models with ParaView for creating and manipulating scientific visualizations using natural language and visual inputs.