capybara-sfw/mcp-server-demo
If you are the rightful owner of mcp-server-demo 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.
This is a simple MCP (Model Context Protocol) server example that provides a text reversal feature.
The MCP Text Tools Demo is a basic implementation of a Model Context Protocol server designed to demonstrate text manipulation capabilities, specifically text reversal. It is built to run in a Python environment and can be configured to operate in different modes, such as stdio and SSE, to accommodate various use cases. The server is intended to be integrated with platforms like Cursor, where it can be added as a new MCP server for enhanced text processing functionalities. The setup involves creating a dedicated conda environment, installing necessary dependencies, and running the server using specified commands. The server's primary tool, 'reverse_text', allows users to input a string and receive its reversed version, showcasing the server's ability to handle simple text transformations.
Features
- Text Reversal: Provides a tool to reverse input text strings.
- Multiple Transport Modes: Supports stdio and SSE modes for server communication.
- Integration with Cursor: Easily configurable as an MCP server in Cursor.
- Environment Isolation: Utilizes conda environments for dependency management.
- Command Line Interface: Simple CLI commands to start and configure the server.
Usages
usage with cursor stdio
"mcp": { "servers": { "text-tools": { "type": "stdio", "name": "Text Tools", "command": "conda run -n mcp-server-demo python /path/to/server.py" } } }
usage with cursor sse
"mcp": { "servers": { "text-tools": { "type": "sse", "name": "Text Tools", "url": "http://localhost:8000/sse" } } }
Tools
reverse_text
Receive a text input and return its inverted version