agent-hanju/char-index-mcp
A Model Context Protocol server for character-level index-based string manipulation
Platform-specific configuration:
{
"mcpServers": {
"char-index-mcp": {
"command": "npx",
"args": [
"-y",
"char-index-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) server providing character-level index-based string manipulation. Perfect for test code generation where precise character positioning matters.
[](https://smithery.ai/server/char-index-mcp) [](https://opensource.org/licenses/MIT) [](https://pypi.org/project/char-index-mcp/) [](https://pypi.org/project/char-index-mcp/)
> This project was created with Claude AI.
LLMs generate text token-by-token and struggle with exact character counting. When generating test code with specific length requirements or validating string positions, you need precise index-based tools. This MCP server solves that problem.
find_nth_char - Find nth occurrence of a characterfind_all_char_indices - Find all indices of a characterfind_nth_substring - Find nth occurrence of a substringfind_all_substring_indices - Find all occurrences of a substringsplit_at_indices - Split string at multiple positionsinsert_at_index - Insert text at specific positiondelete_range - Delete characters in rangereplace_range - Replace range with new textfind_regex_matches - Find regex pattern matches with positionsextract_between_markers - Extract text between two markerscount_chars - Character statistics (total, letters, digits, etc.)extract_substrings - Extract one or more substrings (unified tool)No installation required! Just configure and run:
# Test it works
uvx char-indLoading reviews...