IDE Integration
The OpenModels MCP platform supports 6 AI IDEs. Each IDE uses a JSON configuration file to define MCP server connections. You can generate these configs automatically from any server’s detail page, or write them manually using the formats below.
Supported IDEs
| IDE | Config File |
|---|---|
| Claude Code | .claude/mcp.json |
| Cursor | .cursor/mcp.json |
| Windsurf | .windsurf/mcp.json |
| Gemini CLI | .gemini/settings.json |
| Kiro | .kiro/mcp.json |
| VS Code (Copilot) | .vscode/mcp.json |
Configuration by Transport
stdio
For servers that run as local processes communicating via standard input/output:
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "@org/package-name"],
"env": {
"API_KEY": "<YOUR_API_KEY>"
}
}
}
}The command and args fields come from the server’s install configuration. Environment variables are populated from the server’s env_vars definitions.
SSE (Server-Sent Events)
For servers accessible over HTTP with server-sent events:
{
"mcpServers": {
"server-name": {
"url": "https://example.com/mcp/sse",
"env": {
"API_KEY": "<YOUR_API_KEY>"
}
}
}
}HTTP Streaming
For servers using bidirectional HTTP streaming:
{
"mcpServers": {
"server-name": {
"url": "https://example.com/mcp/stream",
"env": {
"API_KEY": "<YOUR_API_KEY>"
}
}
}
}IDE-Specific Setup
Claude Code
- Create
.claude/mcp.jsonin your project root (or home directory for global config) - Add the server configuration
- Restart Claude Code to pick up the new server
mkdir -p .claude
# Paste config into .claude/mcp.jsonCursor
- Create
.cursor/mcp.jsonin your project root - Add the server configuration
- Cursor detects changes automatically
mkdir -p .cursor
# Paste config into .cursor/mcp.jsonWindsurf
- Create
.windsurf/mcp.jsonin your project root - Add the server configuration
- Restart Windsurf or reload the window
mkdir -p .windsurf
# Paste config into .windsurf/mcp.jsonGemini CLI
- Create
.gemini/settings.jsonin your home directory - Add the server configuration under the
mcpServerskey - The CLI picks up servers on next invocation
mkdir -p ~/.gemini
# Paste config into ~/.gemini/settings.jsonKiro
- Create
.kiro/mcp.jsonin your project root - Add the server configuration
- Kiro detects changes automatically
mkdir -p .kiro
# Paste config into .kiro/mcp.jsonVS Code (Copilot)
- Create
.vscode/mcp.jsonin your project root - Add the server configuration
- Reload the VS Code window
mkdir -p .vscode
# Paste config into .vscode/mcp.jsonUsing the Connect Panel
The easiest way to get a config snippet:
- Navigate to any server’s detail page at
/mcp/{server-id} - Find the Connect panel
- Select your IDE from the tabs
- If the server supports multiple transports, choose your preferred one
- Click the copy button to copy the config to your clipboard
- Paste into the appropriate config file for your IDE
Using the API
You can also fetch configs programmatically:
# Get config for a specific IDE
curl https://api.openmodels.run/api/v1/mcp/servers/postgres/config/cursor
curl https://api.openmodels.run/api/v1/mcp/servers/github/config/claude-code
curl https://api.openmodels.run/api/v1/mcp/servers/fetch/config/vscode-copilotSupported IDE identifiers: claude-code, cursor, windsurf, gemini-cli, kiro, vscode-copilot
Environment Variables
Many MCP servers require API keys or other credentials. These appear as placeholders in the generated config:
"env": {
"API_KEY": "<YOUR_API_KEY>"
}Replace placeholder values with your actual credentials. Never commit secrets to version control — use environment variables or a secrets manager instead.
Troubleshooting
| Issue | Solution |
|---|---|
| Server not connecting | Verify the config file is in the correct location for your IDE |
| Command not found | Ensure the package is installed (npm install -g @org/package) or use npx |
| Permission denied | Check file permissions on the config file |
| Environment variable errors | Ensure all required env vars are set with valid values |
| Transport mismatch | Confirm the server actually supports the transport you configured |