MCP.so
登录

MCP Chat Adapter

@aiamblichus

基本信息

分类

AI 与智能体

许可证

MIT license

传输方式

stdio

作者

aiamblichus

关于 MCP Chat Adapter

MCP server for using OpenAI compatible chat endpoints

MCP Chat Adapter 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Chat Adapter 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Chat Adapter?

MCP Chat Adapter is an MCP (Model Context Protocol) server that provides a clean interface for LLMs to use chat completion capabilities through the MCP protocol. It acts as a bridge between an LLM client and any OpenAI‑compatible API, and is designed specifically for chat models (not text completions).

How to use MCP Chat Adapter?

Install via npm and configure environment variables (OPENAI_API_KEY, OPENAI_API_BASE, CONVERSATION_DIR) in your MCP client’s mcp.json file. The server exposes tools for creating conversations, chatting, listing, getting, and deleting conversations. Conversations are stored locally in the directory specified by CONVERSATION_DIR.

Key features of MCP Chat Adapter

  • Built with FastMCP for a robust, clean implementation.
  • Provides tools for conversation management and chat completion.
  • Supports conversation persistence with local file storage.
  • Compatible with OpenAI and any OpenAI‑compatible API.
  • Configurable model, system prompt, and generation parameters.
  • Proper error handling and timeouts.

Use cases of MCP Chat Adapter

  • Allow an LLM like Claude to spin off and maintain multiple background conversations with other models.
  • Continue an existing conversation across different contexts by specifying its conversation_id.
  • Manually edit or review conversation history by modifying files in the CONVERSATION_DIR.
  • Integrate with any tool that speaks MCP to provide chat completion capabilities.

常见问题

1

What dependencies or runtime does it require?

Node.js (via npx) and an API key for an OpenAI‑compatible service. The server is published on npm and runs with one command.

2

Where are conversations stored?

Conversations are stored as local files in the directory set by the `CONVERSATION_DIR` environment variable (default `./convos`). The server must be restarted to see manual edits.

3

Does it support text completions?

No. The server is focused on chat models only and does not support text completions.

4

Which APIs can I use?

Any API that is compatible with OpenAI’s chat completion endpoint. For example, OpenRouter is explicitly mentioned in the README’s configuration.

5

What are the storage limits?

The `MAX_CONVERSATIONS` environment variable (default 1000) sets the maximum number of conversations stored. Old conversations are not automatically evicted beyond this limit.

评论

AI 与智能体 分类下的更多 MCP 服务器