This MCP (Model Context Protocol) server allows communication with multiple unichat-based MCP servers simultaneously. It acts as a middleman that queries different language models and combines their responses, providing more comprehensive results through its multichat tool.
Prerequisites:
Steps:
Navigate to the MCP servers directory:
cd C:\Users\kurror\AppData\Roaming\Roo-Code\MCP
Clone or create the multichat-mcp directory
Place the server files in the multichat-mcp directory
Install dependencies:
npm install
Build the TypeScript code:
npm run build
Add the multichat-mcp server to your cline_mcp_settings.json
file (located at C:\Users\kurror\AppData\Roaming\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
):
{
"mcpServers": {
"multichat": {
"command": "node",
"args": [
"C:\\Users\\kurror\\AppData\\Roaming\\Roo-Code\\MCP\\multichat-mcp\\build\\index.js"
],
"env": {}
}
}
}
For proper operation, you need to start each server in a separate terminal window:
Start unichat servers in individual terminal windows:
cd C:\Users\kurror\AppData\Roaming\Roo-Code\MCP\unichat-ts-mcp-server
$env:UNICHAT_MODEL="gpt-4o" # Set your desired model
$env:UNICHAT_API_KEY="your_api_key" # Your actual API key
node ./build/index.js
Start the multichat server in a separate terminal:
cd C:\Users\kurror\AppData\Roaming\Roo-Code\MCP\multichat-mcp
node ./build/index.js
To send messages to multiple unichat servers:
<use_mcp_tool>
<server_name>multichat</server_name>
<tool_name>multichat</tool_name>
<arguments>
{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is your opinion about async programming?"
}
],
"servers": ["Lacayo 1", "openrouter-chat"],
"outputDir": "test_output"
}
</arguments>
</use_mcp_tool>
Parameters:
You can also send requests directly using PowerShell:
cd C:\Users\kurror\AppData\Roaming\Roo-Code\MCP\multichat-mcp
$request = @{
jsonrpc = "2.0"
id = 1
method = "tools/call"
params = @{
name = "multichat"
arguments = @{
messages = @(
@{role = "system"; content = "You are a helpful assistant."},
@{role = "user"; content = "Hello, world!"}
)
servers = @("Lacayo 1", "openrouter-chat")
outputDir = "my-test-output"
}
}
} | ConvertTo-Json -Depth 10
$request | Out-File -FilePath "request.json" -Encoding utf8
Get-Content "request.json" | node ./build/index.js
This creates a directory responses/my-test-output
containing the responses from each server.
To read a saved response file:
<use_mcp_tool>
<server_name>multichat</server_name>
<tool_name>read_response</tool_name>
<arguments>
{
"outputDir": "test_output",
"server": "Lacayo 1"
}
</arguments>
</use_mcp_tool>
Parameters:
outputDir
is correct and that previous multichat commands succeeded.tools/call
, not tool/call
).Test unichat servers directly to ensure they're functioning:
<use_mcp_tool>
<server_name>Lacayo 1</server_name>
<tool_name>unichat</tool_name>
<arguments>
{
"messages": [
{
"role": "user",
"content": "Hello, are you working?"
}
]
}
</arguments>
</use_mcp_tool>
Remember to rebuild the multichat-mcp server with npm run build
after making any code changes.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "multichat" '{"command":"node","args":["C:\\Users\\kurror\\AppData\\Roaming\\Roo-Code\\MCP\\multichat-mcp\\build\\index.js"],"env":[]}'
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": {
"multichat": {
"command": "node",
"args": [
"C:\\Users\\kurror\\AppData\\Roaming\\Roo-Code\\MCP\\multichat-mcp\\build\\index.js"
],
"env": []
}
}
}
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": {
"multichat": {
"command": "node",
"args": [
"C:\\Users\\kurror\\AppData\\Roaming\\Roo-Code\\MCP\\multichat-mcp\\build\\index.js"
],
"env": []
}
}
}
3. Restart Claude Desktop for the changes to take effect