This is a personal implementation of a Model Context Protocol (MCP) server that provides custom tools through a FastMCP interface.
- Greeting tool: Returns personalized greetings
- Dice rolling: Simulates rolling multiple 6-sided dice
- Lottery number generator: Creates Mark Six lottery numbers (6 unique numbers between 1-49)
- Clone this repository
- Install Python dependencies (FastMCP)
- Run the server:
python my_mcp_server.py
- Default stdio mode:
python my_mcp_server.py
- SSE mode (port 8000):
python my_mcp_server.py --sse
To connect this MCP server to Cline using stdio:
- Add this configuration to your Cline MCP settings (cline_mcp_settings.json):
{
"prompt-server": {
"disabled": false,
"timeout": 3,
"type": "stdio",
"command": "python",
"args": [
"c:/Projects/my-mcp-server/my_mcp_server.py"
]
}
}
Tests are available in test_tools.py
. Run with:
python -m unittest test_tools.py