Overview
The String Utils API provides a comprehensive set of string manipulation utilities through both traditional REST endpoints and MCP (Model Context Protocol) server integration. Built by Dirt Road Dev, this API offers string utilities via MCP server and paid/testnet endpoints, all protected by x402 blockchain-based payment processing.Architecture
The API consists of three main components, all protected by x402 authentication:- MCP Server (
/mcp/*) - String utilities via MCP protocol (USDC payment on Base) - Paid Endpoints (
/tools/paid/*) - Premium string utilities on Base network (USDC payment) - Testnet Endpoints (
/tools/testnet/*) - Test utilities on SKALE Base Sepolia Testnet (USDC payment)
Supported Operations
String Manipulation Tools
22 string utilities including case conversion, formatting, validation, and more
Blockchain Integration
The API integrates with blockchain networks for payment processing:- Base Network (Paid endpoints) - Uses USDC for micropayments
- SKALE Base Sepolia Testnet (Testnet endpoints) - Uses USDC for testing environment
Authentication
All endpoints use x402 blockchain-based payment authentication:How x402 Authentication Works
- Request access - Client sends request with payment requirements in response
- Pay via blockchain - Client makes payment using USDC on Base network
- Access granted - Once payment settles, full API access is provided
Payment Process
- Network: Base (production) or SKALE Base Sepolia Testnet (testing)
- Token: USDC for all transactions
- Authentication: Bearer token + blockchain payment verification
- Settlement: Gasless transactions via payment facilitators
Available Tools
The API provides 22 comprehensive string manipulation tools:Case Conversion
to_uppercase- Convert to uppercaseto_lowercase- Convert to lowercasecapitalize- Capitalize each wordcapitalize_first_letter- Capitalize only first letter
Case Style Conversion
snake_to_camel- snake_case → camelCasecamel_to_snake- camelCase → snake_case
String Analysis
length- Get string lengthcontains- Check substring presencestarts_with- Check prefixends_with- Check suffixis_palindrome- Check palindromecount_occurences- Count substring occurrences
String Modification
reverse_string- Reverse stringtrim- Remove whitespacenormalize_whitespace- Standardize whitespacereplace_all- Replace all occurrencessubstring- Extract substringtruncate- Truncate with suffixrepeat- Repeat stringremove_non_alphanumeric- Remove special charactersslugify- Create URL slug