drio
Open app

MCP Text Tools Demo

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Text Tools Demo is a simple server example that implements the Model Context Protocol (MCP) and provides a text reversal functionality.

To use the MCP Text Tools Demo, create and activate a conda environment, install the dependencies, and run the server using either stdio or SSE mode.

  • Text reversal functionality that takes an input string and returns its reversed version. - Supports both stdio and SSE modes for server communication.
  1. Reversing text strings for data processing tasks.
  2. Integrating with other applications that require text manipulation.

Add to your AI client

Use these steps to connect MCP Text Tools Demo in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-demo-capybara-sfw": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-demo-capybara-sfw": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-demo-capybara-sfw": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-demo-capybara-sfw": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-demo-capybara-sfw": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-demo-capybara-sfw": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-demo-capybara-sfw"
      ]
    }
  }
}

FAQ

How do I install the MCP Text Tools Demo?

You can install it by creating a conda environment and installing the required dependencies from the requirements.txt file.

Can I run the server in different modes?

Yes! You can run the server in stdio mode or SSE mode depending on your needs.

What is the main functionality of this demo?

The main functionality is to reverse text strings.