The ConsultingAgents MCP server enables Claude Code to consult with additional AI agents for code and problem analysis. It provides access to three expert consultants: Darren (OpenAI), Sonny (Anthropic), and Sergey (OpenAI with web search), allowing for multi-model perspectives on coding problems.
git clone https://github.com/yourusername/consulting-agents-mcp.git
cd consulting-agents-mcp
python -m venv mcp_venv
source mcp_venv/bin/activate # On Windows: mcp_venv\Scripts\activate
pip install -r requirements.txt
Create a .env
file in the project root:
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
chmod +x start_mcp_server.sh
./start_mcp_server.sh
claude mcp add ConsultingAgents /absolute/path/to/consulting-agents-mcp/start_mcp_server.sh
claude --mcp-debug
Once configured, you can use consult_with_darren
, consult_with_sonny
, and consult_with_sergey
functions directly in Claude Code.
Uses OpenAI's o3-mini model with high reasoning to analyze code and provide recommendations.
Parameters:
consultation_context
: Description of the problem (required)source_code
: Optional code to analyzeUses Claude 3.7 Sonnet with enhanced thinking to provide in-depth code analysis.
Parameters:
consultation_context
: Description of the problem (required)source_code
: Optional code to analyzeUses GPT-4o with web search capabilities to find relevant documentation and examples.
Parameters:
consultation_context
: Description of what information or documentation you need (required)search_query
: Optional specific search query to usesource_code
: Optional code for contextMCP_TRANSPORT
: Transport protocol (default: "stdio", alternatives: "http", "sse")HOST
: Server host when using HTTP/SSE transport (default: "127.0.0.1")PORT
: Server port when using HTTP/SSE transport (default: 5000)When running with HTTP transport, the server provides these endpoints:
GET /health
Returns server status and available agents.
POST /consult
Request body for Darren or Sonny:
{
"agent": "Darren",
"consultation_context": "I have a bug in my code where...",
"source_code": "def example():\n return 'hello'"
}
Request body for Sergey:
{
"agent": "Sergey",
"consultation_context": "How do I implement JWT authentication in Express?",
"search_query": "express.js JWT auth implementation"
}
claude mcp add
command.env
fileTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "ConsultingAgents" '{"command":"/absolute/path/to/consulting-agents-mcp/start_mcp_server.sh","args":[]}'
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": {
"ConsultingAgents": {
"command": "/absolute/path/to/consulting-agents-mcp/start_mcp_server.sh",
"args": []
}
}
}
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": {
"ConsultingAgents": {
"command": "/absolute/path/to/consulting-agents-mcp/start_mcp_server.sh",
"args": []
}
}
}
3. Restart Claude Desktop for the changes to take effect