Skip to main content

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)

Total: 24 tools (22 after the 2026-06-07 audit pass; residency tools added 2026-09-25).

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- and bj- 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_models is 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

Release files for bonito-mcp 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bonito-mcp 1.0.1
File Size Uploaded
bonito_mcp-1.0.1.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bonito-mcp 1.0.1
File Interpreter ABI Platform
bonito_mcp-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / bonito_mcp-1.0.1.tar.gz

Download URL bonito_mcp-1.0.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
71f136984dde1e9683d9b9acdf40f14f50f44a71242f1aac791917977f57b2d0
BLAKE2b-256 checksum
How to use checksums
1a3ce21026c1a7caa0f9cb86ca2e1e24e04f10160f8438216e66fa828725598a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / bonito_mcp-1.0.1-py3-none-any.whl

Download URL bonito_mcp-1.0.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1773dc78802b8ece4b5167710aed83d33de293d85bf4b4dd608bc41ce5140f3b
BLAKE2b-256 checksum
How to use checksums
75ee6a1099a12e81f5145c6880a702805c8a3c9f35f9e73ca74dd3444a95e719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page