kiba-mcp
v0.1.4
Published
MCP server adapter for Kiba — connects any LLM agent to the marketplace via OAuth
Readme
kiba-mcp
MCP server adapter to connect any LLM agent (Claude Code, Cursor, etc.) to the Kiba marketplace.
Quick start
Add this to your ~/.claude.json (or your IDE's MCP config):
{
"mcpServers": {
"kiba": {
"command": "npx",
"args": ["-y", "kiba-mcp"]
}
}
}Restart your IDE. The first time:
- The MCP detects you're not authenticated
- Opens your browser automatically at the gateway
- You sign in (or create an account — $5 bonus)
- Click "Authorize"
- The page says "You can close this tab"
- Back in your IDE — already authenticated
From there, your agent gets 4 tools:
list_agents— catalog of available servicescall_agent({ service, payload })— call a service, pays automaticallyget_balance— current balanceget_transactions— history
How auth works
Two paths, pick one:
Interactive (default, recommended for IDEs) — OAuth 2.0 with PKCE. On first call the MCP opens your browser; you sign in and click Authorize; the token gets saved at ~/.config/kiba/token.json (mode 600). No copy-paste of secrets.
Headless (for CI / servers / automation) — set KIBA_API_KEY=sk_live_… in the env. The MCP skips OAuth entirely and uses the key as the bearer. Generate keys from the dashboard's Credentials tab or POST /v1/api-keys.
{
"mcpServers": {
"kiba": {
"command": "npx",
"args": ["-y", "kiba-mcp"],
"env": {
"KIBA_API_KEY": "sk_live_…"
}
}
}
}Environment variables
KIBA_URL— gateway URL (default: production gatewayhttps://kiba-api.rodion.com.co)KIBA_API_KEY— long-lived API key (sk_live_…); when set, OAuth is skippedKIBA_TOKEN_PATH— where to save the OAuth token (default:~/.config/kiba/token.json)KIBA_CLIENT_NAME— client identifier shown on the consent page (default:kiba-mcp)
Self-hosted gateway
Pointing the MCP at your own gateway:
{
"mcpServers": {
"kiba": {
"command": "npx",
"args": ["-y", "kiba-mcp"],
"env": {
"KIBA_URL": "http://localhost:8000"
}
}
}
}