Bonito MCP Server
A Model Context Protocol (MCP) server that wraps the Bonito AI Platform REST API. Use it from Claude Desktop, Cursor, or any MCP-compatible client to manage your multi-provider AI infrastructure.
Features
- Provider Management – Connect and verify AWS Bedrock, Azure OpenAI, GCP Vertex AI, OpenAI, Anthropic, and Groq
- Model Management – List, sync, and activate models across providers
- Unified Gateway – Send chat completions through Bonito's OpenAI-compatible gateway
- Projects – List and create projects (containers for agents, KBs, budgets)
- Agent Management – Create and execute BonBon and Bonobot agents
- Knowledge Bases – Create KBs, upload inline documents, and link KBs to agents for RAG
- Cost & Observability – Track costs per provider and view gateway logs
- Data Residency – Keep model calls in one geography (CA, US, EU) and see which providers can serve (
get_data_residency,set_data_residency) - Cloud Agent Inventory – List agents running in your own AWS and Google accounts (AgentCore, Bedrock Agents, Agent Registry, Agent Engine) with findings, and let Bonito agents call them through Bonito (
list_cloud_agents,connect_cloud_agent, Pro+)
Total: 28 tools (22 after the 2026-06-07 audit pass; residency tools added 2026-09-25; list_cloud_agents and connect_cloud_agent added 2026-10-09; agent_relay 2026-10-10).
Audit notes (2026-06-07)
Tools added in the latest audit pass: list_projects, create_project, upload_to_kb, link_kb_to_agent. Without these, KBs were inert (no way to load docs via MCP) and agents couldn't be scoped to projects (which the post-Phase 1 create_agent flow requires).
Still missing from this MCP surface relative to the live platform — flag for the next pass:
- Access-token CRUD (
bp-andbj-create/list/revoke) - Image generation (
POST /v1/images/generations) - Video generation (
POST /v1/videos+ status + content) - Agent-to-agent connections (
connect_agents— handoff / escalation / data_feed / trigger) - Agent updates (
update_agent) - Tier-aware model listing (current
list_modelsis unfiltered) - Origami tool surface (16 tools) is intentionally separate; do NOT mirror into MCP without product review.
Quick Start
Install from source
git clone https://github.com/ShabariRepo/bonito.git
cd bonito/mcp-server
pip install -e .
Set your API key
export BONITO_API_KEY="your-bonito-api-key"
Run (stdio – for Claude Desktop)
bonito-mcp
Run (SSE – for network clients)
bonito-mcp --transport sse --port 8080
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bonito": {
"command": "bonito-mcp",
"env": {
"BONITO_API_KEY": "your-bonito-api-key"
}
}
}
}
Docker
docker build -t bonito-mcp .
docker run -e BONITO_API_KEY="your-key" -p 8080:8080 bonito-mcp
Available Tools
| Tool | Description |
|---|---|
list_providers |
List connected AI providers |
connect_provider |
Connect a new provider |
verify_provider |
Verify provider credentials |
list_models |
List models (with filters) |
sync_models |
Sync models from providers |
activate_model |
Activate a model for the gateway |
chat_completion |
Send a chat completion request |
list_gateway_keys |
List gateway API keys |
create_gateway_key |
Create a new gateway key |
gateway_usage |
View usage statistics |
list_agents |
List agents in a project |
create_agent |
Create a BonBon or Bonobot agent |
execute_agent |
Execute an agent |
get_agent |
Get agent details |
list_knowledge_bases |
List knowledge bases |
create_knowledge_base |
Create a knowledge base |
get_costs |
Get cost breakdown by provider |
get_gateway_logs |
View gateway request logs |
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
BONITO_API_KEY |
Yes | – | Your Bonito API key |
BONITO_API_URL |
No | https://api.getbonito.com |
API base URL |
License
MIT
Metadata
Release files for bonito-mcp 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bonito_mcp-1.3.0.tar.gz | 8.9 kB | Without provenance | Details for bonito_mcp-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bonito_mcp-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for bonito_mcp-1.3.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / bonito_mcp-1.3.0.tar.gz
| Download URL | bonito_mcp-1.3.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cc25dccd03d948574faebd4e99abe3fede19dae278747b755edec79993487c1
|
|
BLAKE2b-256 checksum How to use checksums |
d4265dd8837f38c998937b4de2225002c056bb880e9b3362ec8506bbe0a68dc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / bonito_mcp-1.3.0-py3-none-any.whl
| Download URL | bonito_mcp-1.3.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5928934f9fbe1db902d73ef3f093ec84b1790c1b58d926c599cee7c16616fa92
|
|
BLAKE2b-256 checksum How to use checksums |
b9aee3b2b5a1eb47e125e4674617166a15087c1d1b5c0284a08a0df7dabfafb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Security for bonito-mcp 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.