MCP ExplorerExplorer

Mcp Client Openai

@njcxon 10 months ago
2 MIT
FreeCommunity
AI Systems
This project implements an MCP-Client service compatible with the OpenAI API format, allowing interaction with the local MCP-Server through the standard OpenAI API interface.

Overview

What is Mcp Client Openai

mcp-client-openai is a project that implements an MCP (Model Control Protocol) client service compatible with the OpenAI API format, allowing interaction with local MCP models through standard OpenAI API interfaces.

Use cases

Use cases include developing chatbots that utilize local language models, integrating AI functionalities into applications, and testing and prototyping AI solutions using the OpenAI API.

How to use

To use mcp-client-openai, start the OpenAI API by running ‘python main-api.py’ and then launch the standard input/output CLI for testing with ‘python cli.py’.

Key features

Key features include compatibility with the OpenAI API format, support for Function Calls, and the ability to configure the MCP-Server through the mcp-server-config.json file for both stdio and sse modes.

Where to use

mcp-client-openai can be used in various fields that require interaction with language models, such as AI development, chatbot implementation, and automated content generation.

Content

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(工具调用)。

test

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers