Model Context Protocol (MCP)
@drkhan107
About Model Context Protocol (MCP)
A working pattern for SSE-based MCP clients and servers using Gemini LLM
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_gemini": {
"command": "python",
"args": [
"sse_server.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Model Context Protocol (MCP)?
A working demo of the Model Context Protocol integrated with Google’s Gemini. It provides a server that uses SSE (Server-Sent Events) to expose MCP endpoints, alongside a FastAPI backend and a Streamlit GUI for interacting with the system.
How to use Model Context Protocol (MCP)?
Clone the repository, set a GOOGLE_API_KEY in a .env file, install dependencies with pip install -r requirements.txt, then start the MCP server with python sse_server.py (defaults to http://localhost:8080/sse). Optionally launch the SSE client with python ssc_client.py http://localhost:8080/sse, start the FastAPI server with python fastapp.py, and finally run the Streamlit app with streamlit run app.py (opens on localhost:8501). Click “Connect to MCP server” in the browser.
Key features of Model Context Protocol (MCP)
- Integrates with Google’s Gemini.
- Uses SSE (Server-Sent Events) transport.
- Includes a FastAPI server for a GUI backend.
- Provides a Streamlit web interface.
- Simple setup with a
.envfile for API key. - Fully functional demo ready to run locally.
Use cases of Model Context Protocol (MCP)
- Experimenting with MCP and Gemini in a local environment.
- Building a chat-like GUI that connects to an MCP server.
- Prototyping applications that combine context management with Google’s generative AI.
- Learning how to set up an MCP server with SSE and a client.
FAQ from Model Context Protocol (MCP)
What transport does the MCP server use?
The server uses SSE (Server-Sent Events) and runs by default on http://localhost:8080/sse.
Do I need an API key to run this server?
Yes, you must add a valid Google API key to a .env file as GOOGLE_API_KEY.
How do I start the GUI?
First ensure the MCP server and FastAPI server are running, then launch the Streamlit app with streamlit run app.py and open localhost:8501 in your browser.
What dependencies are required?
All dependencies are listed in requirements.txt and can be installed with pip install -r requirements.txt.
Frequently asked questions
What transport does the MCP server use?
The server uses SSE (Server-Sent Events) and runs by default on `http://localhost:8080/sse`.
Do I need an API key to run this server?
Yes, you must add a valid Google API key to a `.env` file as `GOOGLE_API_KEY`.
How do I start the GUI?
First ensure the MCP server and FastAPI server are running, then launch the Streamlit app with `streamlit run app.py` and open `localhost:8501` in your browser.
What dependencies are required?
All dependencies are listed in `requirements.txt` and can be installed with `pip install -r requirements.txt`.
Basic information
More AI & Agents MCP servers
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
Model Context Protocol Server for Home Assistant
tevonsbA MCP server for Home Assistant
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
Perplexity Ask MCP Server
ppl-aiThe official MCP server implementation for the Perplexity API Platform
Comments