Unichat MCP Server in Python
@amidabuddha
关于 Unichat MCP Server in Python
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"unichat-mcp-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"unichat-mcp-server",
"--client",
"claude"
]
}
}
}工具
1Send a request to unichat
概览
What is Unichat MCP Server in Python?
Unichat MCP Server in Python is an MCP server that sends requests to OpenAI, Anthropic, and OpenAI-compatible providers (such as MistralAI, xAI, Google AI, DeepSeek, Alibaba, or Inception) using the Model Context Protocol. It uses one tool and several predefined prompts, and requires a vendor API key and a selected model. It is designed for developers who want to integrate AI model chat into MCP‑based applications.
How to use Unichat MCP Server in Python?
Configure the server in your MCP client (e.g., Claude Desktop) by setting the environment variables UNICHAT_MODEL, UNICHAT_API_KEY, and optionally UNICHAT_BASE_URL. Run the server via uvx unichat-mcp-server (published) or locally with uv run unichat-mcp-server. The server exposes a tool called unichat and prompts such as code_review, document_code, explain_code, and code_rework. Installation via Smithery is also supported: npx -y @smithery/cli install unichat-mcp-server --client claude.
Key features of Unichat MCP Server in Python
- Sends requests to OpenAI, Anthropic, and OpenAI‑compatible providers.
- Supports custom API endpoints via
UNICHAT_BASE_URL. - Includes one tool:
unichat(requiresmessagesargument). - Provides four code‑oriented prompts: review, document, explain, rework.
- Works with any model supported by the Unichat library.
- Deployable via Smithery or as a published PyPI package.
Use cases of Unichat MCP Server in Python
- Integrate AI chat into an MCP‑enabled IDE or editor for code review.
- Automate code documentation generation inside a development workflow.
- Explain complex code snippets to a developer during a review session.
- Apply requested changes to code by using the
code_reworkprompt.
FAQ from Unichat MCP Server in Python
Which providers are supported?
OpenAI, Anthropic, and any OpenAI‑compatible provider such as MistralAI, xAI, Google AI, DeepSeek, Alibaba, or Inception.
What environment variables are required?
You must set UNICHAT_MODEL (the model name from the supported list) and UNICHAT_API_KEY (your vendor API key). For custom endpoints, also set UNICHAT_BASE_URL to the provider’s compatible endpoint.
How do I install the server?
Use uvx unichat-mcp-server for published packages, or clone the repository and run with uv run unichat-mcp-server. It can also be installed automatically via Smithery.
What tools and prompts does it provide?
One tool (unichat) that takes a messages string and returns a response. Four prompts: code_review, document_code, explain_code, and code_rework – each requiring a code string, with code_rework also accepting an optional changes string.
其他 分类下的更多 MCP 服务器
Awesome Mlops
visengerA curated list of references for MLOps
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
评论