CB Insights MCP Server: Deprecated Self-Hosted Example
Use the supported MCP server at mcp.cbinsights.com; this self-hosted example is deprecated as of January 2026.
npx -y @cbinsights/cbi-mcp-serverOverview
This repository contains a simple self-hosted example of a Model Context Protocol (MCP) server that proxies requests to the CB Insights ChatCBI LLM. It demonstrates how to expose a ChatCBI tool to MCP-enabled agents and clients so they can send messages, receive responses, and continue conversations via a chat identifier.
Important: this example is deprecated as of January 2026. CB Insights operates a fully supported MCP server at https://mcp.cbinsights.com. New integrations should use the hosted service or consult CB Insights for guidance. The self-hosted example remains useful as a reference for understanding MCP tool wiring, local testing, and how ChatCBI responses are structured.
Features
- Minimal MCP server implementation for exposing a ChatCBI tool to agents
- Pass-through proxying to the CB Insights ChatCBI API using OAuth credentials
- Conversation continuation via an optional chatID
- Local development support using the MCP inspector and uv (Astral/uv)
- Example configuration for integrating with clients like Claude Desktop
Installation / Configuration
Prerequisites:
- Python and uv (Astral) CLI installed. See https://docs.astral.sh/uv/getting-started/installation/
- MCP tooling for local inspector testing (mcp CLI)
Clone the repository and configure environment variables:
Create a .env file with your CB Insights OAuth credentials and optional overrides:
# .env
CBI_CLIENT_ID=your_client_id_here
CBI_CLIENT_SECRET=your_client_secret_here
CBI_MCP_TIMEOUT=120
CBI_MCP_PORT=8000
Environment variables summary:
| Variable | Default | Description |
|---|---|---|
| CBI_CLIENT_ID | (required) | OAuth client ID for CB Insights API |
| CBI_CLIENT_SECRET | (required) | OAuth client secret for CB Insights API |
| CBI_MCP_TIMEOUT | 120 | Request timeout (seconds) when proxying to ChatCBI |
| CBI_MCP_PORT | 8000 | Local port for the MCP server |
Run the server with uv:
Or, if using the configuration shown in the Claude Desktop example (see Use Cases):
Available Tools
This MCP server exposes one primary tool: ChatCBI.
ChatCBI — send a message and receive a ChatCBI response
- Input JSON:
- message (string) — text to send to ChatCBI
- chatID (string, optional) — ID for continuing a prior conversation
- Typical response JSON:
- Behavior: If you provide a chatID, the server will forward it to ChatCBI and the conversation will continue. If not provided, a new chat session will be started and a chatID will be returned.
Example HTTP request (local server proxy):
Example response (truncated):
(Endpoint paths may vary depending on MCP wiring; inspect the running server via the MCP inspector to confirm.)
Use Cases
- Agent-driven Q&A: An AI agent can call the ChatCBI tool to field domain-specific questions and receive structured responses with sources and suggested follow-ups.
- Conversation continuity: Keep multi-step interactions coherent by saving chatID and passing it back in subsequent requests to continue the same ChatCBI session.
- Local testing and development: Run this example server locally to validate agent behavior and tool wiring before migrating to the hosted MCP server.
- Integration with desktop clients: Configure clients (e.g., Claude Desktop) to run a local MCP server and expose ChatCBI to the client for private or experimental workflows.
Claude Desktop configuration example:
This adds a configuration entry telling Claude Desktop how to start the local uv process that runs the example server.
Debugging & Development
- Use the MCP inspector for interactive testing and debugging:
- Watch logs for OAuth token exchange and outbound API calls to ChatCBI.
- Adjust CBI_MCP_TIMEOUT if the upstream ChatCBI API responses take longer than the default.
Deprecation & Migration
This repository is deprecated as of January 2026. For production use, migration is recommended to the hosted, supported MCP server at:
- https://mcp.cbinsights.com
The hosted server provides support, maintenance, and guaranteed availability. Use the self-hosted example only for learning, local experimentation, or as a reference implementation.
Resources
- Repository (reference): https://github.com/cbinsights/cbi-mcp-server
- CB Insights ChatCBI API docs: https://api-docs.cbinsights.com/portal/docs/CBI-API/chatcbi
- CB Insights API authentication: https://api-docs.cbinsights.com/portal/docs/CBI-API/Authentication
- MCP inspector docs: https://modelcontextprotocol.io/docs/tools/inspector#getting-started