Skip to main content
Glama

mcp-bridge

This configuration launches an MCP server in Docker that internally calls the llama.cpp OpenAI-compatible API.

Startup

docker compose up -d --build

Related MCP server: SwiftOpenAI MCP Server

Shutdown

docker compose down

Connection Details

  • MCP endpoint: http://localhost:8000/mcp

  • Transport: streamable-http

Connection Verification

Even if a 406 is returned, it is normal as a reachability check. This is because the MCP endpoint requires an Accept header.

curl -i http://localhost:8000/mcp

Claude Code Configuration

Claude Code's MCP is managed in ~/.claude.json.

If you are configuring it manually for a local scope (specific project only), please apply the format of client-config.example.json to ~/.claude.json.

claude mcp add --transport http local-agent-helper http://localhost:8000/mcp

Verify Configuration

claude mcp list
claude mcp get local-agent-helper

Notes

  • Adding --scope user makes it available for all projects.

  • Using --scope project saves it to .mcp.json directly under the project.

Environment Variables

You can copy .env.example to .env to use it.

  • MCP_TRANSPORT (Default: streamable-http)

  • FASTMCP_HOST (Default: 0.0.0.0)

  • FASTMCP_PORT (Default: 8000)

  • LLAMA_CPP_SERVER_URL

  • LLAMA_CPP_SERVER_MODEL

  • LLAMA_CPP_SERVER_TIMEOUT

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    F
    maintenance
    A lightweight bridge that wraps OpenAI's built-in tools (like web search and code interpreter) as Model Context Protocol servers, enabling their use with Claude and other MCP-compatible models.
    4
    12
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A universal server that enables MCP-compatible clients (like Claude Desktop, Cursor, VS Code) to access OpenAI's APIs for chat completions, image generation, embeddings, and model listing through a standardized interface.
    7 npm
    7
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that bridges MCP clients with local LLM services, enabling seamless integration with MCP-compatible applications through standard tools like chat completion, model listing, and health checks.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Bridges MCP tool calls with OpenAI-compatible HTTP endpoints, allowing MCP clients to forward chat completion requests through a unified FastAPI server that returns responses with MCP-specific headers.
    1
    -