Brainbase MCP Server
Provides 70 tools to interact with the Brainbase API, enabling management of workers, chat/voice deployments, flows, resources, and more via natural language.
README
Brainbase MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to the Brainbase API.
Features
This MCP server exposes 70 tools covering all aspects of the Brainbase API:
🤖 Workers (5 tools)
- Create, read, update, and delete workers
- List all workers for your team
💬 Chat Deployments (6 tools)
- Manage chat deployments
- Deploy and configure chat agents
- Query by deployment ID or agent ID
🎤 Voice Deployments (11 tools)
- Create and manage voice deployments
- Configure custom webhooks
- Make batch voice calls
- Get deployment analytics
🎤 Voice V1 Deployments (11 tools)
- Legacy voice deployment management
- Campaign management
- Batch calling capabilities
📊 Flows (5 tools)
- Create and manage conversation flows
- Update flow definitions
- List flows by worker
📁 Folders (6 tools)
- Organize resources with folders
- Hierarchical folder structure
- Move resources between folders
📄 Resources (4 tools)
- Manage file and link resources
- Vector search (RAG) capabilities
- Move and organize resources
📎 File Resources (2 tools)
- Upload and manage file resources
- Associate files with workers
🔗 Link Resources (2 tools)
- Create and manage link resources
- Web content integration
🔌 Integrations (4 tools)
- Twilio integration management
- Configure external services
👥 Team (1 tool)
- Get team information
🧪 Tests (5 tools)
- Create and manage tests
- Run test suites
- View test run history
📞 Assets (3 tools)
- Manage phone numbers
- Register Twilio numbers
📊 Logs & Analysis (5 tools)
- Chat deployment logs
- Voice deployment logs
- Voice analytics with billing breakdown
Installation
Using pip
pip install git+https://github.com/brainbase-mcp/brainbase-mcp.git
Using uv (recommended)
uv pip install git+https://github.com/brainbase-mcp/brainbase-mcp.git
From source
git clone https://github.com/brainbase-mcp/brainbase-mcp.git
cd brainbase-mcp
pip install -e .
Configuration
Get your Brainbase API Key
- Go to Brainbase
- Sign in to your account
- Navigate to Settings → API Keys
- Create a new API key or copy your existing key
Configure Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"brainbase": {
"command": "python",
"args": ["-m", "server"],
"env": {
"BRAINBASE_API_KEY": "your-api-key-here"
}
}
}
}
Alternative: Using uv
{
"mcpServers": {
"brainbase": {
"command": "uv",
"args": ["--directory", "/path/to/brainbase-mcp", "run", "server.py"],
"env": {
"BRAINBASE_API_KEY": "your-api-key-here"
}
}
}
}
Usage
Once configured, the Brainbase tools will be available in Claude Desktop. You can:
Managing Workers
Create a new worker named "Customer Support Bot" with description "Handles customer inquiries"
List all workers for my team
Get details for worker with ID "worker_123"
Creating Chat Deployments
Create a chat deployment for worker "worker_123" named "Website Chat" using flow "flow_456"
List all chat deployments for worker "worker_123"
Voice Deployments
Create a voice deployment for worker "worker_123" named "Sales Calls" using flow "flow_789"
Make batch calls with voice deployment "deploy_123" to these numbers: +1234567890, +1987654321
Managing Resources
Create a file resource named "Product Manual" for worker "worker_123" with URL "https://example.com/manual.pdf"
Query resources for worker "worker_123" with query "pricing information"
Working with Flows
Create a new flow for worker "worker_123" named "Support Flow" with description "Customer support conversation flow"
Update flow "flow_123" with new definition
Organizing with Folders
Create a folder named "Documentation" for worker "worker_123"
Move resource "resource_123" to folder "folder_456"
API Coverage
This MCP server implements all 70 endpoints from the Brainbase API v2:
| Category | Endpoints |
|---|---|
| Workers | 5 |
| Chat Deployments | 6 |
| Voice Deployments | 11 |
| Voice V1 Deployments | 11 |
| Flows | 5 |
| Folders | 6 |
| Resources | 4 |
| File Resources | 2 |
| Link Resources | 2 |
| Integrations | 4 |
| Team | 1 |
| Tests | 5 |
| Assets | 3 |
| Logs | 4 |
| Analysis | 1 |
| Total | 70 |
Development
Running Tests
# Install dev dependencies
pip install pytest pytest-asyncio
# Run tests
pytest test_server.py -v
Project Structure
brainbase-mcp/
├── server.py # Main MCP server implementation
├── test_server.py # Comprehensive test suite
├── pyproject.toml # Project configuration
└── README.md # This file
API Documentation
For detailed information about each endpoint, parameters, and response formats, see the official Brainbase API Documentation.
Authentication
All requests are authenticated using your Brainbase API key via the x-api-key header. The API key must be set in the BRAINBASE_API_KEY environment variable.
Error Handling
The server provides clear error messages for:
- Missing or invalid API key
- HTTP errors (4xx, 5xx)
- Network errors
- Invalid parameters
Support
- Brainbase Documentation: https://docs.usebrainbase.com/
- MCP Documentation: https://modelcontextprotocol.io/
- Issues: https://github.com/brainbase-mcp/brainbase-mcp/issues
License
MIT License - see LICENSE file for details
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Changelog
v1.0.0 (2025-10-08)
- Initial release
- All 70 Brainbase API endpoints implemented
- Comprehensive test suite
- Full MCP protocol support
- API key authentication
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。