ppmpreetham/socketMCP
3.1
If you are the rightful owner of socketMCP 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 designed to facilitate communication between applications and models, providing a structured and efficient way to manage data exchange.
System Requirements
- Python 3.10 or higher
- MCP SDK 1.2.0 or higher
uv
package manager
Getting Started
Installing uv Package Manager
On MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Make sure to restart your terminal afterwards to ensure that the uv
command gets picked up.
Project Setup
- Clone the project
- Install the dependencies
source .venv/bin/activate # On Windows use: .venv\Scripts\activate
# Install dependencies
uv add "mcp[cli]"
Setting up the Reciever
- Run
reciever.py
in another terminal
Running the Server
- Start the MCP server:
uv run sender.py
- The server will start and be ready to accept connections
Connecting to Claude Desktop
- Install Claude Desktop from the official website
- Configure Claude Desktop to use your MCP server:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"mcp-server": {
"command": "uv", # ALWAYS USE THE ABSOLUTE PATH
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/YOUR/server",
"run",
"server.py"
]
}
}
}
- Restart Claude Desktop
Now, ask Claude to send the time.
BOOM!!!