Overview
The Model Context Protocol (MCP) connects OneBalance’s documentation and API directly to your AI tools. Choose between our hosted MCP server for instant setup or self-hosted installation for advanced configurations.Hosted MCP (Recommended)
The simplest way to connect OneBalance to your AI tools is using our hosted MCP server:Setup for Claude
1
Add OneBalance MCP server
- Navigate to Connectors in Claude settings
- Select Add custom connector
- Enter name: “OneBalance MCP” and URL:
https://docs.onebalance.io/mcp
- Select Add
2
Use in your chats
- When chatting with Claude, select the attachments button (plus icon)
- Select “OneBalance MCP”
- Query Claude with OneBalance context and API access
Setup for Cursor
1
Open MCP settings
- Press Command + Shift + P (or Ctrl + Shift + P on Windows)
- Search for “Open MCP settings”
- Select Add custom MCP to open
mcp.json
2
Configure OneBalance server
Add to your
mcp.json
:mcp.json
3
Test connection
Ask in Cursor chat: “What tools do you have available?” You should see OneBalance documentation search and API tools.
Self-Hosted MCP (Advanced)
For advanced users who prefer local installation:Self-Hosted Setup Steps
- Run the install command above
- Enter your OneBalance API key when prompted
- Select MCP clients (Cursor, Windsurf, Claude Desktop, or All)
- Start the server with the provided command
For testing purposes, you can use our public API key with limited usage:
Available Functions
Both hosted and self-hosted MCP provide these capabilities: Documentation:search
- Search OneBalance docs for relevant context
- Account management, balance queries, quote generation
- Transaction history, contract calls, asset information
- Complete OneBalance platform access
Authentication
When using API endpoints, AI tools will prompt you for your OneBalance API key as needed. Get your API key from the authentication page.Usage
Once configured, use these functions directly in your AI tools:- Ask questions about OneBalance integration
- Get live data from your smart contract accounts
- Generate code with current API context
- Search docs without leaving your editor
Example Prompts
Ready-to-use prompts to explore OneBalance capabilities
Building with LLMs
Learn about other AI integration options with OneBalance
Need help? Use the Intercom chat widget in the bottom right corner for instant assistance, or contact support@onebalance.io.