AI Orbiter - Unified MCP Server Registry & Management Tool for AI Clients
Gradio UI Example
By justjoehere
This is a proof of concept repo on how to create a gradio UI using the Model Context Protocol Client Python SDK.
- Views
- 2
- Repository stars
- 68
- Platforms
- Windows, macOS
- Workspace
- Web
Use cases
- - Gradio Interface : User-friendly interface for interacting with the MCP client and tools. - STDIO and SSE Support : Demonstrates how to connect to MCP servers using both STDIO and SSE methods. - Dynamic Tool Loading : Automatically discovers and integrates tools exposed by MCP servers. - Debugging Support : Optional debug mode to aid in development and troubleshooting.
Platforms
Windows, macOS
System requirements
- Python 3.12 or higher - Node.js - uvicorn (for UVX for STDIO servers) - NPX (for NPX for STDIO servers) - Python (for Python module STDIO servers) - OpenAI API Key (for language model interaction) Gradio requires Python 3.12+
Configuration guide
This repository is a proof of concept for implementing a Model Context Protocol (MCP) client using Gradio. It demonstrates how to interact with MCP servers using both STDIO and SSE communication methods within a Gradio interface.
The Model Context Protocol (MCP) aims to standardize the interaction between language models and tools, providing a uniform interface for communication. This proof of concept showcases the practical application of MCP in building AI assistants with tool integration.
See stdio_versus_sse_mcp_servers.md for details on the differences between the two server types.
The application requires a config.json file to define MCP servers. This file should be placed in the root directory.
config.json should have the following format:
{
"mcpServers": {
"stdio_server_name": {
"type": "stdio",
"command": "uvx",
"args": [],
"env": {}
},
"sse_server_name": {
"type": "sse",
"url": "http://127.0.0.1:3001/sse",
"headers": {}
}
}
}
See Information - How to Configure the config.json file for details. Please note, while the file structure if very similar to what Claude Desktop uses, it is not exactly the same.
There are several important differences (all annotated in the other readme)
"type": "stdio"|"sse"is required to specify which type of servers you are using"command": "uvx"|"npx"|"python"may need to be adjusted for windows users. Example,npxwill need to benpx.cmdfor Windows
MCP Gradio Client Proof of Concept
This repository is a proof of concept for implementing a Model Context Protocol (MCP) client using Gradio. It demonstrates how to interact with MCP servers using both STDIO and SSE communication methods within a Gradio interface.
The Model Context Protocol (MCP) aims to standardize the interaction between language models and tools, providing a uniform interface for communication. This proof of concept showcases the practical application of MCP in building AI assistants with tool integration.
Introduction
This project implements an MCP client within a Gradio application, allowing users to interact with tools exposed via the MCP. By leveraging the MCP's standardized communication protocol, the client can seamlessly integrate with various tools, enhancing the capabilities of language models.
Key elements from the Model Context Protocol:
- Standardization: MCP provides a standardized way for language models to interact with tools, promoting interoperability.
- Communication Methods: Supports multiple communication methods, including STDIO and SSE, for flexibility in tool integration.
- Tool Integration: Enables language models to use external tools, enhancing their functionality and applicability.
Features
- Gradio Interface: User-friendly interface for interacting with the MCP client and tools.
- STDIO and SSE Support: Demonstrates how to connect to MCP servers using both STDIO and SSE methods.
- Dynamic Tool Loading: Automatically discovers and integrates tools exposed by MCP servers.
- Debugging Support: Optional debug mode to aid in development and troubleshooting.
Prerequisites
- Python 3.12 or higher
- Node.js
- uvicorn (for UVX for STDIO servers)
- NPX (for NPX for STDIO servers)
- Python (for Python module STDIO servers)
- OpenAI API Key (for language model interaction)
Understanding MCP STDIO vs SSE Servers
See stdio_versus_sse_mcp_servers.md for details on the differences between the two server types.
Configuration
The application requires a config.json file to define MCP servers. This file should be placed in the root directory.
config.json should have the following format:
{
"mcpServers": {
"stdio_server_name": {
"type": "stdio",
"command": "uvx",
"args": [],
"env": {}
},
"sse_server_name": {
"type": "sse",
"url": "http://127.0.0.1:3001/sse",
"headers": {}
}
}
}
See Information - How to Configure the config.json file for details. Please note, while the file structure if very similar to what Claude Desktop uses, it is not exactly the same.
There are several important differences (all annotated in the other readme)
"type": "stdio"|"sse"is required to specify which type of servers you are using"command": "uvx"|"npx"|"python"may need to be adjusted for windows users. Example,npxwill need to benpx.cmdfor Windows
STDIO Server Definition
- Type: Should be set to
"stdio". - Command: The command to start the STDIO server (e.g.,
"python","uv","uvx", or"npx"). - Args: Arguments for the command (e.g.,
["weather_server.py"]). - Env: Environment variables required by the server.
Note: STDIO servers are instantiated by Gradio and do not need to be manually started. They are typically launched via npx, uvicorn/uvx, or python -m command arguments. Some Python STDIO servers must be downloaded and installed first if they're not recognized packages.
SSE Server Definition
- Type: Should be set to
"sse". - URL: The endpoint where the SSE server is running.
- Headers: (Optional) Any headers required for the connection.
Note: SSE servers must be manually up and running for the Gradio client to connect. Ensure that the SSE server is started before running the Gradio application.
Usage
-
Start SSE Servers (if any) Ensure any SSE servers defined in your
config.jsonare running. -
Run the Gradio Application
python gradio_ui.py -
Interact with the Interface Open the provided URL in your web browser (usually
http://127.0.0.1:7860) to access the Gradio interface. -
Ask Questions Use the chat interface to interact with the language model and the tools provided by the MCP servers.
Prerequisites
Gradio requires Python 3.12+
Installation
Create a fork of this repository, then clone it:
git clone xxxxx
cd xxx
Next, create a virtual environment and install FastMCP: Unix/macOS:
uv venv
source .venv/bin/activate
uv sync --frozen --all-extras --dev
Windows
venv
.venv/bin/activateProduction-grade platform for building agentic IM bots - 生产级多平台智能机器人开发平台/ Agent、知识库编排、插件系统 / Bots for Discord / Slack / LINE / Telegram / WeChat(企业微信, 企微智能机器人, 公众号)…
Your MCPs don't talk to each other. Discover, connect, chain them, and let your favorite LLM build workflows from chat.
MCP-X 是一个 企业级 AI 中台 ,集成了 AI 对话、文案生成、视频生成、图片生成、前端应用构建、MCP市场、Agent智能体等多种创作工具,为企业和开发者提供一站式的 AIGC 工作台解决方案。
