mcp_server_and_client
This project provides a minimal working example of the Model Context Protocol (MCP), demonstrating how to set up a FastMCP server with basic tools and interact with it using an MCP client.
MCP Server and Client
This project provides a minimal working example of the Model Context Protocol (MCP), demonstrating how to set up a FastMCP server with basic tools and interact with it using an MCP client. It serves as a simple reference for understanding how MCP-based communication between agents and tools can be implemented.
Setup Instructions
1. Install uv
python -m pip install uv
2. Initialize the Project and activate the env
uv init mcp_server_for_llm_agents
uv venv
source .venv/bin/activate
3. Install dependencies
uv pip install -r requirements.txt
Server
Agent tools (e.g., summarize_text, code executin, etc.) should be implemented in server.py Run the server with:
uv run mcp dev server.py
Or directly:
python server.py
Client
A client using the official MCP SDK is defined in client.py
Run using:
python client.py
It connects to the MCP server and calls tools like: summarize_text
, cat_fact
, execute_code present
from server.py
After running we can see results in terminal for now
References:
Related MCP Servers
View all developer_tools servers →Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
repomix
by yamadashy
Repomix is a tool that packs your codebase into AI-friendly formats, making it easier to use with AI tools like LLMs.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.