Mcp Client Openai
About
本项目实现了一个兼容 OpenAI API 格式的 MCP-Client服务,允许通过标准的 OpenAI API 接口与本地 MCP-Server进行交互。
Details
- Author
- njcx
- GitHub stars
- 2
- Downloads
- 338
- Categories
- AI
Jump to
- Exposes local MCP models via OpenAI API format.
- Supports both stdio and SSE MCP server transports.
- Compatible with any LLM API that supports function calling.
- Provides a CLI mode for testing purposes.
Start the OpenAI API server with python main-api.py, or launch the stdio CLI with python cli.py for testing. Edit mcp-server-config.json to configure the MCP server (stdio or SSE) and the LLM endpoint (any OpenAI API that supports function calls/tool calling).
MCP-client
本项目实现了一个兼容 OpenAI API 格式的 MCP (Model Control Protocol) 客户端服务,允许通过标准的 OpenAI API 接口与本地 MCP 模型进行交互。运行方法:
1, 启动openai api : python main-api.py
2, 启动 stdio cli : python cli.py # just for test
MCP-Server配置:
修改mcp-server-config.json, 支持stdio 和sse两种。
LLM配置:
修改mcp-server-config.json llm字段, 支持所有 OpenAI API 格式的API, 需要支持 Function Call(工具调用)。

Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
