mcp-server

dhingratul/mcp-server

3.1

If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a specialized server designed to facilitate communication and data exchange between different machine learning models and applications.

FastMCP Chat Assistant 🚀

A beautiful Streamlit chat interface that leverages your FastMCP 2.0 servers as AI tools with OpenAI integration.

Features

  • 💬 ChatGPT-like Interface: Beautiful Streamlit chat UI
  • 🔧 MCP Tool Integration: Automatically discovers and uses your FastMCP servers as tools
  • 🤖 OpenAI Integration: Powered by GPT models with function calling
  • Real-time Tool Execution: AI can call your MCP tools to answer questions
  • 🎨 Modern UI: Clean, responsive interface with tool call visualization

Quick Start

  1. Install dependencies:

    uv sync
    
  2. Set up your OpenAI API key:

    cp .env.example .env
    # Edit .env and add your OpenAI API key
    
  3. Run the Streamlit app:

    source .venv/bin/activate
    streamlit run src/client/app.py
    
  4. Open your browser to the URL shown in the terminal (usually http://localhost:8501)

Usage

  1. Enter your OpenAI API key in the sidebar
  2. The app will automatically discover your MCP servers
  3. Start chatting! The AI can use your MCP tools to answer questions
  4. Watch as the AI calls tools and provides intelligent responses

Adding More Servers

Edit src/client/app.py and add your servers in the get_mcp_bridge() function:

# Add your custom server
custom_server = FastMCPServer(
    name="custom",
    script_path="/path/to/your/server.py", 
    description="Your custom server description"
)
bridge.add_server(custom_server)

Example Interactions

  • "What's the weather in San Francisco?" (uses weather server)
  • "Can you check the weather in multiple cities?"
  • Ask any question - the AI will determine if tools can help!

Enjoy your new AI-powered FastMCP assistant! 🎉

Design Doc

📊 Tool Results
⚙️ MCP Bridge
🤖 AI Processing
🔧 Configuration Panel
💬 Chat Interface
🚀 FastMCP Chat Assistant
Weather Data
Custom Tool Results
MCPToolBridge
Server Connection
FastMCP Weather Server
Your Custom Servers
OpenAI GPT Model
Function Calling Decision
Tool Execution
Response Generation
OpenAI API Key Input
Model Selection
Available Tools List
Reload Tools Button
Message History
Chat Input
Sidebar Configuration
Streamlit Chat UI
Web Browser Interface