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
-
Install dependencies:
uv sync
-
Set up your OpenAI API key:
cp .env.example .env # Edit .env and add your OpenAI API key
-
Run the Streamlit app:
source .venv/bin/activate streamlit run src/client/app.py
-
Open your browser to the URL shown in the terminal (usually
http://localhost:8501
)
Usage
- Enter your OpenAI API key in the sidebar
- The app will automatically discover your MCP servers
- Start chatting! The AI can use your MCP tools to answer questions
- 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! 🎉