Unichat MCP Server in Python

Unichat MCP Server in Python

unichat•byamidabuddha

A Python MCP server that sends requests to OpenAI, Anthropic, and OpenAI-compatible providers via a tool or predefined prompts.

License: MIT license•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Implements a unichat tool that accepts a required messages string and returns a response.
  • •Sends requests to OpenAI, Anthropic, and OpenAI-compatible providers.
  • •Provides predefined prompts for code review, code documentation, code explanation, and code rework.
  • •Supports custom API endpoints for OpenAI-compatible providers through UNICHAT_BASE_URL.

BEST FOR

  • •Reviewing code for best practices, potential issues, and improvements.
  • •Generating documentation for code, including docstrings and comments.
  • •Sending requests to OpenAI, Anthropic, and OpenAI-compatible providers using the MCP protocol.

ABOUT UNICHAT

Unichat MCP Server in Python is cataloged as an MCP server attributed to amidabuddha. A Python MCP server that sends requests to OpenAI, Anthropic, and OpenAI-compatible providers via a tool or predefined prompts. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT license. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Unichat MCP Server in Python are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which providers can the server send requests to?

It can send requests to OpenAI, Anthropic, and OpenAI-compatible providers such as MistralAI, xAI, Google AI, DeepSeek, Alibaba, or Inception.

What does the unichat tool accept and return?

It requires a messages string argument and returns a response.

Does the server provide coding-related prompts?

It provides prompts for code review, documentation, explanation, and rework.

Upstream README

View this exact version on GitHub

README.md · 28fa2ed659ee · Fetched 2026-11-13 08:21:42 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Unichat MCP Server in Python

Also available in TypeScript

MseeP.ai Security Assessment Badge

Released under the MIT license. Trust Score Smithery Server Installations

Hosted at MCPHub

Send requests to OpenAI, Anthropic, and OpenAI-compatible providers using MCP protocol via tool or predefined prompts. For OpenAI-compatible providers such as MistralAI, xAI, Google AI, DeepSeek, Alibaba, or Inception, set UNICHAT_BASE_URL to the provider's compatible API endpoint. Vendor API key required

Tools

The server implements one tool:

  • unichat: Send a request to unichat
    • Takes "messages" as required string arguments
    • Returns a response

Prompts

  • code_review
    • Review code for best practices, potential issues, and improvements
    • Arguments:
      • code (string, required): The code to review"
  • document_code
    • Generate documentation for code including docstrings and comments
    • Arguments:
      • code (string, required): The code to comment"
  • explain_code
    • Explain how a piece of code works in detail
    • Arguments:
      • code (string, required): The code to explain"
  • code_rework
    • Apply requested changes to the provided code
    • Arguments:
      • changes (string, optional): The changes to apply"
      • code (string, required): The code to rework"

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Supported Models:

A list of currently supported models to be used as "SELECTED_UNICHAT_MODEL" may be found here. Please make sure to add the relevant vendor API key as "YOUR_UNICHAT_API_KEY"

Example:

"env": {
  "UNICHAT_MODEL": "gpt-5.4-mini",
  "UNICHAT_API_KEY": "YOUR_OPENAI_API_KEY"
}

For OpenAI-compatible providers with custom endpoints:

"env": {
  "UNICHAT_MODEL": "PROVIDER_MODEL",
  "UNICHAT_API_KEY": "YOUR_PROVIDER_API_KEY",
  "UNICHAT_BASE_URL": "https://provider.example.com/v1"
}

When UNICHAT_BASE_URL is set, the server accepts the configured UNICHAT_MODEL without checking it against Unichat's built-in model list.

Development/Unpublished Servers Configuration

"mcpServers": {
  "unichat-mcp-server": {
    "command": "uv",
    "args": [
      "--directory",
      "{{your source code local directory}}/unichat-mcp-server",
      "run",
      "--locked",
      "unichat-mcp-server"
    ],
    "env": {
      "UNICHAT_MODEL": "SELECTED_UNICHAT_MODEL",
      "UNICHAT_API_KEY": "YOUR_UNICHAT_API_KEY"
    }
  }
}

Published Servers Configuration

"mcpServers": {
  "unichat-mcp-server": {
    "command": "uvx",
    "args": [
      "unichat-mcp-server"
    ],
    "env": {
      "UNICHAT_MODEL": "SELECTED_UNICHAT_MODEL",
      "UNICHAT_API_KEY": "YOUR_UNICHAT_API_KEY"
    }
  }
}

Installing via Smithery

To install Unichat for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install unichat-mcp-server --client claude

Development

Clean installation from source

Prerequisites: Git, Python 3.11 or newer (as declared in pyproject.toml), and uv available on your PATH. Node.js/npm is only needed for the optional MCP Inspector below. The shell examples use Bash/Zsh syntax.

Clone the repository and restore its locked dependencies:

git clone https://github.com/amidabuddha/unichat-mcp-server.git
cd unichat-mcp-server
uv sync --locked

uv sync --locked creates the project-local .venv/, installs the project in editable mode and restores dependencies from uv.lock. It fails if the lockfile needs updating instead of silently changing it. No virtual-environment activation or global Python dependency installation is required when using uv run.

Set the same environment variables used in the Claude Desktop examples, replacing the placeholders with your provider's values:

export UNICHAT_MODEL="SELECTED_UNICHAT_MODEL"
export UNICHAT_API_KEY="YOUR_UNICHAT_API_KEY"
# Optional, for an OpenAI-compatible provider with a custom endpoint:
# export UNICHAT_BASE_URL="https://provider.example.com/v1"

The server reads environment variables; it does not load .env files itself. For Claude Desktop, keep these values in the server's env configuration shown above.

Run the local server:

uv run --locked unichat-mcp-server

This is a stdio MCP server: connect through Claude Desktop or the Inspector below to interact with it. It does not start a web page or an interactive chat prompt. The editable installation is sufficient to run it; to also create source and wheel distributions using the configured Hatchling backend:

uv build

Packages are written to dist/. uv build supplies the build backend in an isolated environment; a globally installed build frontend is unnecessary. Runtime dependencies are locked by uv.lock, but the hatchling build requirement is not version-pinned in pyproject.toml.

Normal development

After editing files under src/, restart the server or reconnect it in your MCP client:

uv run --locked unichat-mcp-server

The editable installation uses the current source. Ordinary source changes do not require deleting .venv/, reinstalling dependencies or rebuilding distribution packages. Run uv build again only when you need updated package artifacts. After pulling changes to the dependency manifest and lockfile, run uv sync --locked to update the environment to match them.

This repository has no configured automated test suite or watch command. Use the Inspector below to manually exercise tools and prompts, restarting the server after changes.

Clean rebuild of an existing checkout

Stop the running server and run these commands from the repository root (the directory containing pyproject.toml and uv.lock). These paths assume uv's default project-local environment: .venv/ contains installed dependencies and the editable project, and dist/ contains generated source/wheel archives.

rm -rf .venv dist
uv sync --locked
uv build

This recreates the environment and distribution packages. Keep uv.lock, source, configuration, .env files and user data. Other ignored names such as build/ and wheels/ are not established outputs of this project's build workflow and are not cleanup targets. Global uv caches and Python installations can be reused. To run again, retain or reapply the environment variables above and use uv run --locked unichat-mcp-server.

Intentional dependency updates

Dependency updates are separate from restoration. When deliberately changing requirements in pyproject.toml, run uv lock and review the resulting uv.lock changes, then run uv sync --locked. To deliberately upgrade an existing dependency within its declared constraints, for example:

uv lock --upgrade-package unichat
uv sync --locked

Review the lockfile changes and check server behavior before accepting the update. Routine installation and rebuilding should use the existing lockfile.

Publishing

Publishing is a separate maintainer action and is not part of local installation or rebuilding. Prepare fresh distributions with the clean-rebuild workflow above and verify that dist/ contains only the intended release before uploading to PyPI:

uv publish --token "YOUR_PYPI_API_TOKEN"

The repository also has a publishing workflow in .github/workflows/publish.yml, triggered by changes to pyproject.toml on main or manual dispatch.

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory "/path/to/unichat-mcp-server" run --locked unichat-mcp-server

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Hosted deployment

A hosted deployment is available on Fronteir AI.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Unichat MCP Server in Python from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/unichat)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent