MCP Integration
Query BRO risk scores directly from Claude Code, Cursor, or any MCP-compatible AI tool. The MCP server wraps the REST API with natural language tooling.
Why MCP?
Ask for risk scores in plain English. No API calls, no parsing, no boilerplate. Your AI tool handles everything.
MCP-compatible agents automatically discover available tools and their schemas. Plug in and start querying.
Every response returns typed JSON with scores, verdicts, and dimensions. Machine-readable by default.
Setup
Add the BRO MCP server to your project's .mcp.json:
{
"mcpServers": {
"bro-oracle": {
"command": "npx",
"args": ["@blackhart/bro-mcp"],
"env": {
"BRO_API_KEY": "your-key-here"
}
}
}
}Available Tools
bro_get_score()slug: stringGet the full BRI score, Forge Scale, and all 12 dimension scores for a protocol.
bro_compare()slugs: string[]Side-by-side comparison of multiple protocols across all dimensions.
bro_check_risk()slug: string, threshold: numberPass/fail risk gate. Returns whether the protocol meets a minimum BRI.
bro_history()slug: string, days?: numberScore trend over time. Shows BRI changes and the events that triggered them.
bro_search()query: stringSearch protocols by name, category, or chain. Returns matching scores.
Usage Examples
Once configured, use natural language in your AI tool:
# In Claude Code or Cursor, just ask:
"What's the BRO score for Aave?"
→ Returns: BRI 895, MITHRIL, all 12 dimensions
"Compare Morpho vs Euler security"
→ Returns: side-by-side table with dimension breakdown
"Which lending protocols are rated below DAMASCUS?"
→ Returns: filtered list with scores and categories
"Has Uniswap's score changed in the last 30 days?"
→ Returns: history with timestamps and deltas