A Python implementation of a Model Context Protocol (MCP) server with text utility tools.
This MCP server provides the following text manipulation tools:
- reverse_text - Reverses the order of characters in text
- uppercase_text - Converts text to uppercase
- lowercase_text - Converts text to lowercase
- word_count - Counts the number of words in text
- character_count - Counts the number of characters in text
- shuffle_text - Randomly shuffles characters in text
pip install -r requirements.txtpython server.pyThe server will start on port 8081 (or the PORT environment variable if set).
GET /health- Health check endpointGET /sse- SSE endpoint for MCP communicationPOST /message?sessionId=<id>- Message endpoint for handling MCP requests
PORT- Port to run the server on (default: 8081)MESSAGE_ENDPOINT- Endpoint path for messages (default: /message)
This server is designed to be deployed via MCPHub. It will automatically:
- Detect Python runtime from
requirements.txt - Validate MCP SDK dependency (
mcppackage) - Generate appropriate Dockerfile
- Deploy to Fly.io
After deployment, you can test the server by:
- Checking the health endpoint:
GET https://your-app.fly.dev/health - Connecting via MCP client using the SSE endpoint