OpenAI-Compatible MCP Bridge
Allows calling an OpenAI-compatible chat-completions endpoint to send prompts with optional system prompt and model overrides, and to check upstream model availability via the /v1/models endpoint.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenAI-Compatible MCP Bridge
A minimal MCP server that exposes any OpenAI-compatible chat-completions endpoint as callable tools.
Why this exists
Many local or self-hosted models already expose:
GET /v1/modelsPOST /v1/chat/completions
This bridge wraps that interface behind MCP without depending on browser automation, session scraping, or provider-specific SDKs.
MCP client
|
v
OpenAI-Compatible MCP Bridge
|
+--> bridge.ask
+--> bridge.health
|
v
OpenAI-compatible upstreamRelated MCP server: MCP Token Bridge
Recruiter quick scan
MCP server with Streamable HTTP transport
OpenAI-compatible upstream adapter
environment-only configuration
explicit timeout and response validation
mock upstream for offline testing
no browser/session automation
Quick start
pip install -e ".[dev]"
set OPENAI_MCP_UPSTREAM_BASE_URL=http://127.0.0.1:8080/v1
set OPENAI_MCP_MODEL=my-model
python -m openai_mcp_bridgeDefault MCP endpoint:
http://127.0.0.1:8787/mcpTools
bridge_ask
Inputs:
promptsystem_prompt(optional)model(optional)
bridge_health
Calls the configured upstream /v1/models endpoint.
Offline smoke test
python -m unittest tests.test_bridge -v
ruff check src tests
python -m tests.smoke_test
python -m tests.e2e_mcp_testThe validation suite checks configuration/input guards, then launches a local fake OpenAI-compatible server for adapter smoke testing and a real Streamable HTTP MCP client/server round trip.
Configuration
Variable | Default |
|
|
| empty |
|
|
|
|
|
|
|
|
Security boundary
The bridge binds to 127.0.0.1 by default. Exposing it beyond localhost requires an authenticated HTTPS boundary, request/rate limits and an explicit data-retention policy. See SECURITY.md.
Scope
This is an adapter, not a model host. The upstream service is responsible for authentication, model serving, rate limits, and provider-specific behavior.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- -licenseCqualityNot gradedmaintenanceEnables interaction with OpenAI-compatible APIs (like Ollama) through MCP tools. Provides access to chat completions, model listings, and embeddings generation from local or remote OpenAI-style endpoints.3-
- FlicenseNot gradedqualityDmaintenanceBridges 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-
- AlicenseAqualityDmaintenanceProxies LLM completion requests to OpenAI-compatible providers via MCP tools.272 PyPIMIT
- FlicenseAqualityDmaintenanceEnables LLM chat with routing and failover, balance checking, and model listing via MCP.3-