Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A modular Python framework implementing the Model Context Protocol (MCP). It features a standardized client-server architecture over StdIO, integrating LLMs with external tools, real-time weather data fetching, and an advanced RAG (Retrieval-Augmented Generation) system.
Fetched from the repository for this visit.
The MCP Agent Orchestrator is a professional-grade Python implementation of the Model Context Protocol (MCP). It provides a structured environment for Large Language Models (LLMs) to interact with external tools and knowledge bases through a standardized communication layer. The project utilizes FastMCP for server-side tool definitions and an asynchronous client-side bridge to OpenAI-compatible interfaces.
The project follows a decoupled client-server architecture:
The client implementation (rag_agent.py, client.py) facilitates:
AsyncExitStack.The weather server (server.py) demonstrates real-time API integration:
httpx.The RAG server (rag_server.py) provides advanced document intelligence:
LangChain.ChromaDB.├── client.py # Standard MCP client implementation
├── rag_agent.py # Specialized agent for RAG operations
├── server.py # Weather service MCP server
├── rag_server.py # RAG knowledge base MCP server
├── test.py # Connectivity test for LLM API
├── .env # Environment configuration
└── data/
├── rag_db/ # Vector store persistence directory
└── text.txt # Sample knowledge base source
Create a .env file in the root directory with the following variables:
API_KEY=your_llm_api_key
BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
MODEL=qwen-plus
EMBED_MODEL=sentence-transformers/all-MiniLM-L6-v2
# Optional for You.com Search API (100 free searches/day work without this)
YDC_API_KEY=your_youcom_api_key
pip install mcp langchain langchain-community langchain-openai chromadb httpx python-dotenv openai
To start the client and connect it to the MCP server:
python client.py server.py
The server now exposes two tools:
query_weather(city)search_web(query, count=5) using You.com Search API (GET https://api.you.com/v1/agents/search)Example prompts:
To initialize the knowledge base and start the RAG-enabled agent:
python rag_agent.py --server_script rag_server.py
The implementation strictly adheres to the MCP specification:
tool_calls, executes the corresponding server function, and returns the result to the LLM for final synthesis.GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.