Skip to main content
Glama

mcp-bridge

Dies ist eine Konfiguration, um einen MCP-Server in Docker zu starten, der intern die OpenAI-kompatible API von llama.cpp aufruft.

Starten

docker compose up -d --build

Related MCP server: SwiftOpenAI MCP Server

Stoppen

docker compose down

Verbindungsziel

  • MCP-Endpunkt: http://localhost:8000/mcp

  • Transport: streamable-http

Verbindungsprüfung

Selbst wenn 406 zurückgegeben wird, ist dies als Erreichbarkeitsprüfung normal. Der MCP-Endpunkt setzt den Accept-Header voraus.

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

Claude Code Konfiguration

MCP für Claude Code wird in ~/.claude.json verwaltet.

Wenn Sie die Konfiguration manuell für einen lokalen Bereich (nur für ein bestimmtes Projekt) vornehmen möchten, übernehmen Sie das Format aus client-config.example.json in Ihre ~/.claude.json.

Empfohlen: Hinzufügen über CLI

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

Konfiguration prüfen

claude mcp list
claude mcp get local-agent-helper

Ergänzung

  • Mit --scope user ist es für alle Projekte verfügbar.

  • Mit --scope project wird es in der .mcp.json direkt im Projektverzeichnis gespeichert.

Umgebungsvariablen

Sie können .env.example nach .env kopieren und verwenden.

  • MCP_TRANSPORT (Standard: streamable-http)

  • FASTMCP_HOST (Standard: 0.0.0.0)

  • FASTMCP_PORT (Standard: 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.
    17 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
    -