The MCP Proxy Sidecar extends JetBrains' MCP Server with WebSocket monitoring capabilities, allowing you to observe all Model Context Protocol interactions between clients (like Claude Desktop) and JetBrains IDEs in real-time.
First, install the MCP Server Plugin for your JetBrains IDE: https://plugins.jetbrains.com/plugin/26071-mcp-server
To use MCP Proxy Sidecar with Claude Desktop, you need to modify your Claude Desktop configuration file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"ide": {
"command": "npx",
"args": ["-y", "mcp-proxy-sidecar"],
"env": {
"WS_PORT": "27042" // Optional: customize WebSocket port
}
}
}
}
You can customize the sidecar's behavior using environment variables in your Claude Desktop configuration:
Variable | Description | Default |
---|---|---|
WS_PORT |
Port for WebSocket server | 27042 |
IDE_PORT |
Specific port for IDE connection | Auto-scans 63342-63352 |
HOST |
Host address for IDE connection | 127.0.0.1 |
LOG_ENABLED |
Enable debug logging | false |
Example with all configuration options:
{
"mcpServers": {
"ide": {
"command": "npx",
"args": ["-y", "mcp-proxy-sidecar"],
"env": {
"WS_PORT": "27042",
"IDE_PORT": "63342",
"HOST": "127.0.0.1",
"LOG_ENABLED": "true"
}
}
}
}
The sidecar broadcasts all MCP tool calls as WebSocket notifications that you can monitor with any WebSocket client.
WS_PORT
environment variable)interface MCPNotification {
type: 'mcp-notification';
payload: {
endpoint: string; // Tool name that was called
content: any; // Call arguments
timestamp: string; // ISO timestamp
}
}
The MCP Proxy Sidecar sits between your MCP client (like Claude Desktop) and the JetBrains IDE:
This architecture allows for seamless monitoring without affecting the normal operation of MCP clients and the IDE.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "ide" '{"command":"npx","args":["-y","mcp-proxy-sidecar"],"env":{"WS_PORT":"27042"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"ide": {
"command": "npx",
"args": [
"-y",
"mcp-proxy-sidecar"
],
"env": {
"WS_PORT": "27042"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"ide": {
"command": "npx",
"args": [
"-y",
"mcp-proxy-sidecar"
],
"env": {
"WS_PORT": "27042"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect