home / mcp / text tools mcp server

Text Tools MCP Server

Provides a local text reversal tool via stdio or SSE transport for MCP clients.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "capybara-sfw-mcp-server-demo": {
      "url": "http://localhost:8000/sse",
      "headers": {
        "CONDA_DEFAULT_ENV": "mcp-server-demo"
      }
    }
  }
}

This MCP server provides a simple text tools suite that you can run locally and connect to from an MCP client. It exposes a text reversal tool and can operate in standard input/output mode or via an SSE transport, enabling quick experimentation and integration with your workflow.

How to use

You can access the Text Tools MCP server from your client by using either the local stdio endpoint or the SSE transport. In stdio mode, your client runs the server locally and communicates through standard input and output. In SSE mode, you connect to the server over HTTP and receive a streaming, event-based interface. Use the tool to reverse text, or extend your workflow with additional commands that you configure in your MCP client.

How to install

Prerequisites: you need Python 3.10 and a compatible environment manager available on your system. You will also need an MCP client that can connect via stdio or SSE.

Step 1: Create and activate a dedicated environment for the server.

conda create -n mcp-server-demo python=3.10
conda activate mcp-server-demo

Step 2: Install the required dependencies for the server.

pip install -r requirements.txt

Step 3: Run the server in stdio mode (default). This starts the server and connects via the local stdio channel.

python server.py

Step 4: Run the server in SSE mode if you prefer HTTP-based streaming. This starts the server with SSE transport on port 8000.

python server.py --transport sse --port 8000

Additional notes

Configure your MCP client to connect to one of the available endpoints. For stdio, provide the following command to run the server locally within your client’s workflow: use the conda run prefix followed by the Python script path.

For SSE, point your client to the SSE URL at http://localhost:8000/sse to receive events and send requests.

Available tools

reverse_text

Receives a text string and returns its reversed version.