MCP configuration generator

Agent-ready

Generate a verified Streamable HTTP MCP configuration or project Skill install command for your coding agent. KeepBal's hosted MCP endpoint is https://keepbal.com/mcp and exposes four meta-tools: search_tools, inspect_tool, run_tool, and get_run.

Start with $1 free credit Create API key

1. Choose your MCP client configuration

Select your client below. Replace YOUR_KEEPBAL_KEY or export KEEPBAL_API_KEY in your shell environment before launching the client. Never commit literal keys to version control.

MCP client configuration

Claude Code: Install Claude Code and export KEEPBAL_API_KEY in your shell. Add the server with the command below. Local scope is the default; project and user scopes are also supported.

claude mcp add --transport http keepbal https://keepbal.com/mcp --header "Authorization: Bearer $KEEPBAL_API_KEY"

Project-scoped configuration (.mcp.json):

{"mcpServers":{"keepbal":{"type":"http","url":"https://keepbal.com/mcp","headers":{"Authorization":"Bearer ${KEEPBAL_API_KEY}"}}}}

Run claude mcp list or claude mcp get keepbal. In a session, open /mcp. For project configuration, use the HTTP type explicitly in .mcp.json. Claude Code guide · Official docs

Cursor: Install Cursor and make KEEPBAL_API_KEY available to the process launching it. Put this configuration in ~/.cursor/mcp.json globally or .cursor/mcp.json for a project.

{"mcpServers":{"keepbal":{"url":"https://keepbal.com/mcp","headers":{"Authorization":"Bearer ${env:KEEPBAL_API_KEY}"}}}}

Enable the server in Customize. Inspect the Output panel → MCP Logs if tools do not appear; confirm the environment variable is available to Cursor. Cursor guide · Official docs

Codex: Install Codex and export KEEPBAL_API_KEY in the environment that launches it. Add this to ~/.codex/config.toml, shared by the CLI, IDE extension and desktop client.

[mcp_servers.keepbal]
url = "https://keepbal.com/mcp"
bearer_token_env_var = "KEEPBAL_API_KEY"

Run codex mcp list or open /mcp in the TUI. If the header is missing, check the launch environment. The default tool timeout is 60 seconds and startup timeout is 10 seconds. Codex guide · Official docs

Claude Desktop: Install Claude Desktop and Node.js with npx. This setup uses the mcp-remote bridge: a local stdio process connects to the KeepBal HTTP server. Native remote configuration was not verified. Edit claude_desktop_config.json and replace YOUR_KEEPBAL_KEY with your private key.

{"mcpServers":{"keepbal":{"command":"npx","args":["-y","mcp-remote","https://keepbal.com/mcp","--header","Authorization:${KEEPBAL_AUTH}"],"env":{"KEEPBAL_AUTH":"Bearer YOUR_KEEPBAL_KEY"}}}}

Restart Claude Desktop after saving. If the bridge fails to start, check that Node.js and npx are installed and reachable. Keep this credential-bearing configuration private. Claude Desktop guide · Official docs

LangChain: Install Python and run: pip install langchain-mcp-adapters langgraph "langchain[openai]". Export KEEPBAL_API_KEY and OPENAI_API_KEY; the latter authenticates the separately billed agent model in this example. The official README notes MCP support moved to langchain[mcp] / langchain.mcp; this example uses the documented adapters package.

import asyncio
import os
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain.agents import create_agent

async def main():
    client = MultiServerMCPClient({"keepbal": {
        "transport": "streamable_http",
        "url": "https://keepbal.com/mcp",
        "headers": {"Authorization": f"Bearer {os.environ['KEEPBAL_API_KEY']}"}
    }})
    tools = await client.get_tools()
    agent = create_agent("openai:gpt-4.1", tools)
    result = await agent.ainvoke({"messages": [{"role": "user", "content": "Inspect exa/contents, then fetch https://example.com with text enabled and summarize it."}]})
    print(result)

asyncio.run(main())

Check that get_tools returns search_tools, inspect_tool, run_tool and get_run. Headers are supported for HTTP transports. If the model fails separately, check its model-provider credential. LangChain guide · Official docs

OpenAI Agents SDK: Install Python and run: pip install openai-agents. Export KEEPBAL_API_KEY and OPENAI_API_KEY. The example uses the SDK model provider separately from KeepBal tool billing.

import asyncio
import os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main():
    token = os.environ["KEEPBAL_API_KEY"]
    async with MCPServerStreamableHttp(
        name="KeepBal",
        params={"url": "https://keepbal.com/mcp", "headers": {"Authorization": f"Bearer {token}"}, "timeout": 30},
        cache_tools_list=True,
    ) as server:
        agent = Agent(name="Assistant", instructions="Use KeepBal tools.", mcp_servers=[server])
        result = await Runner.run(agent, "Inspect exa/contents, then fetch https://example.com with text enabled and summarize it.")
        print(result.final_output)

asyncio.run(main())

Keep the server async context open while Runner executes. If tool listing works but calls fail with authentication errors, verify the Authorization header. Check the model-provider key for model errors. OpenAI Agents SDK guide · Official docs

2. Optional: install SKILL.md for REST + MCP workflows

Paste set up https://keepbal.com/SKILL.md into your agent chat, or install the hosted Skill file into your project directory:

Claude Code

mkdir -p .claude/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .claude/skills/keepbal/SKILL.md

Cursor

mkdir -p .cursor/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .cursor/skills/keepbal/SKILL.md

Codex

mkdir -p .agents/skills/keepbal
curl -fsSL https://keepbal.com/SKILL.md -o .agents/skills/keepbal/SKILL.md

3. Verify discovery before running paid tools

MCP initialization and tools/list work anonymously. Calling search_tools and inspect_tool requires a valid Authorization: Bearer dgk_live_... header and costs $0. Paid execution happens only when you invoke run_tool and the call succeeds.

Frequently asked questions

Which MCP transport does KeepBal use?

Streamable HTTP at https://keepbal.com/mcp (protocol versions 2025-06-18 and 2025-03-26) returning JSON responses. Server-Sent Events and A2A transport are not live.

Why do I only see four tools in tools/list?

KeepBal uses four meta-tools (search_tools, inspect_tool, run_tool, and get_run) so your agent searches 2,520+ live tools on demand instead of filling its context window with every schema.

Full MCP reference · All client integrations · Agent cost calculator