duaraghav8/mcp-client-server
3.3
If you are the rightful owner of mcp-client-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 framework designed to facilitate communication between clients and servers using HTTP requests, enabling efficient data exchange and tool execution.
MCP Client-Server
The simplest example of MCP client-server architecture.
The server can be run as a remote MCP server serving HTTP requests.
Client consumes the remote server over HTTP.
Commands
One-time setup
# Setup virtualenv
python3 -m venv venv
source venv/bin/activate
# Download all dependencies using uv
uv install
First, activate the virtual environment:
source venv/bin/activate
Then proceed with the following:
- Start mcp server in dev mode to test out tools
mcp dev server.py
- Run the MCP server
python server.py
Accessible at http://0.0.0.0:8000/mcp by default
- Run the MCP client that calls a tool on server
python client.py