Skip to main content

Overview

The String Utils MCP Server provides access to all 22 string manipulation utilities through the Model Context Protocol (MCP), protected by x402 blockchain-based payment authentication. This allows AI assistants, IDEs, and other tools to integrate string processing capabilities with seamless payment processing.

Features

The MCP server includes all the same powerful string utilities available in the paid API:

Available Tools

22 x402-Protected String Tools

All string utilities available via x402 payment authentication
Case Conversion:
  • reverse_string - Reverse any string
  • snake_to_camel - Convert snake_case to camelCase
  • camel_to_snake - Convert camelCase to snake_case
  • to_uppercase - Convert to uppercase
  • to_lowercase - Convert to lowercase
  • capitalize - Capitalize each word
  • capitalize_first_letter - Capitalize only first letter
String Analysis:
  • length - Get string length
  • contains - Check if string contains substring
  • starts_with - Check if string starts with prefix
  • ends_with - Check if string ends with suffix
  • is_palindrome - Check if string is palindrome
  • count_occurences - Count substring occurrences
String Modification:
  • trim - Remove leading/trailing whitespace
  • normalize_whitespace - Standardize whitespace
  • replace_all - Replace all occurrences
  • substring - Extract substring by indices
  • truncate - Truncate with optional suffix
  • repeat - Repeat string multiple times
  • remove_non_alphanumeric - Remove special characters
  • slugify - Create URL-friendly slug

Integration

MCP Protocol

The server implements the MCP protocol, making it compatible with:
  • Claude Desktop - Use in Claude AI conversations
  • Cursor IDE - String utilities in your code editor
  • VS Code - Integration via MCP extensions
  • Other MCP clients - Any tool supporting MCP protocol

Setup

  1. Configure x402 authentication - Set up your Base network wallet with USDC
  2. Install the String Utils MCP server - Deploy or connect to the MCP server
  3. Configure your MCP client - Provide x402 credentials and payment parameters
  4. Access tools - All utilities become available after successful payment settlement

Usage Examples

# Example MCP client configuration with x402 authentication
mcp install string-utils-mcp --auth x402
{
  "mcpServers": {
    "string-utils": {
      "command": "node",
      "args": ["/path/to/string-utils-mcp/dist/mcp.js"],
      "env": {
        "X402_FACILITATOR_URL": "https://facilitator.payai.network",
        "X402_NETWORK": "base",
        "X402_RECIPIENT": "0x..."
      }
    }
  }
}

Authentication

x402 blockchain authentication required - All MCP tools require payment via USDC on Base network. Authentication is handled through the x402 protocol with bearer token verification.

Rate Limits

The MCP server has generous rate limits suitable for development and integration use. All endpoints require x402 payment authentication via USDC on Base network.

Differences from REST API

Both MCP server and REST API endpoints use the same x402 authentication and payment system:
FeatureMCP ServerREST API
Authenticationx402 + bearer tokenx402 + bearer token
CostUSDC payment requiredUSDC payment required
IntegrationNative MCP tool callsHTTP requests
Rate LimitsDevelopment-friendlyProduction limits
Both the MCP server and REST API require USDC payments on Base network. The MCP server is optimized for AI assistant and IDE integration, while REST API endpoints are designed for traditional web applications.