mcpField
R
Remote MCP Chat

Remote MCP Chat

github.com/anycontext-aiCoding Agents5Updated 88w ago

About Remote MCP Chat

Remote MCP Chat is a Python chat client for people who want to use an OpenAI-powered LLM with a remote MCP server. It is configured with an OpenAI API key and server URL, then run as a chat client.

Key features

  1. 01OpenAI API key configuration
  2. 02Remote MCP server URL configuration
  3. 03Python chat client

Use cases

  1. 01Chat using a configured remote MCP server
  2. 02Run an OpenAI-backed chat client

MCP support

The client connects to a remote MCP server using the URL configured in `.env`.

Details

From the project README

Remote MCP Chat

Architecture

alt text

How it works

alt text

Prerequisites

  • Python >3.10
  • uv
  • OpenAI API key
  • Remote MCP server

Setup environment

  1. Create .env file: cp .env.example .env
  2. Add your OpenAI API key and MCP server url to the .env file.
  3. Create virtual environment: uv venv
  4. Activate virtual environment (windows): .venv\Scripts\activate
  5. Install dependencies: uv pip install -r pyproject.toml
  6. Run chat client: uv run client.py

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.