@rog0x/mcp-string-tools
Official@rog0x/mcp-string-tools
AIエージェント向けの高度な文字列操作ツール。Model Context Protocol (MCP) 経由で提供されます。
ツール
analyze_string
テキストを分析して詳細なメトリクスを取得します:
文字数(スペースあり・なし)
単語数、文数、段落数
推定読了時間
Flesch-Kincaid 読解レベルスコアとグレード
ユニークな単語数と最も一般的な単語
最長の単語
transform_string
さまざまな操作でテキストを変換します:
remove_duplicate_lines - テキストから重複行を削除します
remove_extra_whitespace - 余分な空白と空行を圧縮します
extract_emails - テキストからすべてのメールアドレスを抽出します
extract_urls - テキストからすべてのURLを抽出します
extract_phone_numbers - テキストから電話番号を抽出します
mask_sensitive_data - メールアドレス、電話番号、クレジットカード番号をマスクします
truncate - 単語の境界で省略記号を使ってテキストを切り詰めます
wrap_text - 指定された列幅でテキストを折り返します
diff_strings
2つの文字列を比較して差分を確認します:
character モード - 文字単位の差分
word モード - 単語単位の差分(デフォルト)
line モード - 行単位の差分
追加、削除、変更されていないセグメントを位置とともに表示します
render_template
シンプルなテンプレートエンジン:
{{variables}}をJSONデータオブジェクトの値に置き換えます条件分岐:
{{#if var}}...{{#else}}...{{/if}}ループ:
{{#each arr}}...{{this}}...{{@index}}...{{/each}}ネストされたプロパティへのアクセス:
{{user.name}}
generate_slug
URLに適したスラッグを生成します:
アクセント付き文字を変換します(例:
cafeからcafe)特殊文字を削除します
区切り文字を設定可能(デフォルト:
-)クリーンな切り詰めによるオプションの最大長
オプションの小文字変換トグル
Related MCP server: mcp-regex-tools
セットアップ
npm install
npm run buildClaude Desktop での使用方法
claude_desktop_config.json に追加します:
{
"mcpServers": {
"string-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-string-tools/dist/index.js"]
}
}
}ライセンス
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Exact text tools for AI agents: unified diff, patch apply, regex testing, grapheme counting.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Utility tools for AI agents: hashing, text stats, validation, DNS, currency, GEO audits.
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides 14+ character-level text analysis tools that give LLMs the ability to accurately count letters, analyze individual characters, and work with text at the character level—overcoming tokenization limitations.149 npm3MIT
- AlicenseNot gradedqualityDmaintenanceProvides a suite of regex and text processing tools for AI agents, including pattern testing, extraction, and replacement with capture group support. It also enables various text transformations like case conversion, line sorting, and deduplication through the Model Context Protocol.41 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides string utility operations via the MCP protocol, with built-in EU AI Act compliance.9 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides a set of micro-tools (time calculation, regex, encoding, JSON diff, etc.) for LLM agents to handle deterministic, precision tasks that models often get wrong.MIT