# MCP configuration generator

Generate a verified Streamable HTTP MCP configuration or project Skill install command for KeepBal (`https://keepbal.com/mcp`).

[Start with $1 free credit](/sign-up) · [Create API key](/console/keys)

## Client configurations

### 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.

```sh
claude mcp add --transport http keepbal https://keepbal.com/mcp --header "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. [Detailed guide](/integrations/claude-code) · [Official documentation](https://docs.anthropic.com/en/docs/claude-code/mcp)

### 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.

```json
{"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. [Detailed guide](/integrations/cursor) · [Official documentation](https://cursor.com/docs/context/mcp)

### 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.

```toml
[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. [Detailed guide](/integrations/codex) · [Official documentation](https://developers.openai.com/codex/mcp)

### 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.

```json
{"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. [Detailed guide](/integrations/claude-desktop) · [Official documentation](https://modelcontextprotocol.io/quickstart/user)

### 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.

```python
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. [Detailed guide](/integrations/langchain) · [Official documentation](https://github.com/langchain-ai/langchain-mcp-adapters)

### 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.

```python
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. [Detailed guide](/integrations/openai-agents-sdk) · [Official documentation](https://openai.github.io/openai-agents-python/mcp/)

## Install SKILL.md locally

```sh
mkdir -p .claude/skills/keepbal && curl -fsSL https://keepbal.com/SKILL.md -o .claude/skills/keepbal/SKILL.md
mkdir -p .cursor/skills/keepbal && curl -fsSL https://keepbal.com/SKILL.md -o .cursor/skills/keepbal/SKILL.md
mkdir -p .agents/skills/keepbal && curl -fsSL https://keepbal.com/SKILL.md -o .agents/skills/keepbal/SKILL.md
```

## 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.
