An MCP server for OpenRouter.
user-chat-completion: Returns chat completion responses of given models from OpenRouter for the user message
Run the command below to build the server:
./gradlew installDistThe executable files will be located in build/install/openrouter-mcp-server/bin.
{
"mcpServers": {
"openrouter": {
"command": "<absolute path to the openrouter-mcp-server executable>",
"args": [],
"env": {
"OPENROUTER_API_KEY": "<openrouter api key>"
}
}
}
}