Connect NeuralHub to Claude Desktop, IDEs, and AI agents.
Currently, this exposes the Chat Completion capability, effectively allowing any MCP client to route prompts through NeuralHub to access models like Grok, Gemini 3, and Llama 4.
Add the following configuration to your Claude Desktop config file.
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"neuralhub": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://neuralhub.xyz/api/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY",
"--header",
"x-workspace-id: YOUR_WORKSPACE_ID"
]
}
}
}Replace YOUR_API_KEY with a valid API key from the API Keys page.
Replace YOUR_WORKSPACE_ID with the ID of the workspace you want to access.
https://neuralhub.xyz/api/mcpAuthorization: Bearer YOUR_API_KEYGenerates a chat completion using the NeuralHub API.
{
"model": "string (e.g., 'x-ai/grok-4')",
"messages": [
{ "role": "user", "content": "Hello" }
],
"temperature": 0.7,
"max_tokens": 1000
}