The CB Insights MCP Server provides an interface for interacting with ChatCBI LLM through AI Agents, allowing developers to leverage CB Insights' AI capabilities in their applications.
The CBI MCP Server uses uv for package management. Before setting up the server, make sure you have uv installed on your system.
.env
file with the following variables:CBI_CLIENT_ID=your_client_id
CBI_CLIENT_SECRET=your_client_secret
CBI_MCP_PORT=8000
CBI_MCP_TIMEOUT=30
The default port is 8000
, but you can modify it by changing the CBI_MCP_PORT
value. Similarly, you can adjust the request timeout using the CBI_MCP_TIMEOUT
variable.
The server uses CB Insights API authentication which requires client credentials. You need to obtain your CBI_CLIENT_ID
and CBI_CLIENT_SECRET
and add them to your .env
file. For more details on CB Insights API authentication, visit the official authentication documentation.
To use the MCP server with Claude Desktop, you need to update the Claude configuration:
mcp install server.py
claude_desktop_config.json
file:{
"mcpServers": {
"cbi-mcp-server": {
"command": "/path/to/.local/bin/uv",
"args": [
"--directory",
"/path/to/cloned/cbi-mcp-server",
"run",
"server.py"
]
}
}
}
The server provides the ChatCBI tool which allows you to interact with CB Insights' AI chatbot:
Input parameters:
message
: The message to send to ChatCBIchatID
: (optional) The unique ID of an existing ChatCBI session for conversation continuityReturns:
chatID
: Unique ID of current ChatCBI sessionmessage
: ChatCBI's response messageRelatedContent
: Content related to the responseSources
: Supporting sources for the response contentSuggestions
: Suggested prompts for further explorationFor more detailed information about the ChatCBI API, refer to the ChatCBI Documentation.
You can use the MCP inspector to test and debug your server:
mcp dev server.py
The inspector provides a useful interface for testing your MCP server's functionality. For more information on using the inspector, visit the MCP Inspector documentation.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "cbi-mcp-server" '{"command":"/path/to/.local/bin/uv","args":["--directory","/path/to/cloned/cbi-mcp-server","run","server.py"]}'
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": {
"cbi-mcp-server": {
"command": "/path/to/.local/bin/uv",
"args": [
"--directory",
"/path/to/cloned/cbi-mcp-server",
"run",
"server.py"
]
}
}
}
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": {
"cbi-mcp-server": {
"command": "/path/to/.local/bin/uv",
"args": [
"--directory",
"/path/to/cloned/cbi-mcp-server",
"run",
"server.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect