Skip to main content

MCP server exposing txtool text processing tools for Claude and other agents

Project description

txtool-mcp

MCP server exposing txtool text processing capabilities as tools for Claude and other MCP-compatible agents.

Prerequisites

Install uv (if not already):

curl -LsSf https://astral.sh/uv/install.sh | sh

No separate install step needed — uvx fetches and runs txtool-mcp automatically.

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "txtool": {
      "command": "uvx",
      "args": ["txtool-mcp"]
    }
  }
}

Restart Claude Desktop — txtool tools will appear automatically.

Claude Code (CLI)

Option 1 — CLI command (recommended):

claude mcp add txtool -s user -- uvx txtool-mcp

Option 2 — Manual config:

Add to ~/.claude.json:

{
  "mcpServers": {
    "txtool": {
      "command": "uvx",
      "args": ["txtool-mcp"]
    }
  }
}

Restart Claude Code — txtool tools will appear automatically.

Other MCP-compatible tools (Kiro, etc.)

Refer to your tool's documentation for how to register MCP servers. Use uvx txtool-mcp as the server command.

Available Tools

Tool Description
search_in_files Search for a regex pattern in a file or directory
replace_in_file Find and replace in a file (with dry-run diff)
file_stats Line/word/char counts and top words
transform_text Trim, wrap, indent text
convert_case snake, camel, pascal, kebab, upper, lower, title
sort_text Sort lines (alpha, numeric, reverse, unique)
dedup_text Remove duplicate lines
truncate_text Keep first/last N lines
extract_from_text Extract emails, URLs, IPs, dates, phones, numbers
extract_between_markers Extract lines between start/end patterns
diff_files Compare two files (line/word/char level)
set_ops Set operations on file lines (only_a, only_b, common)
pretty_json Pretty-print JSON
minify_json Minify JSON
validate_json Validate JSON
get_json_value Extract value by dot-notation path
view_csv Render CSV as aligned table
filter_csv Filter CSV rows by condition
parse_env_file Parse .env file as key/value table
apply_template Replace {{VAR}} placeholders
parse_log_file Count log levels, show top errors
tail_file Show last N lines of a file
encode_decode Encode/decode base64, URL, HTML
hash_file_content Compute file hash (md5, sha1, sha256, sha512)
word_count Line/word/char counts for file or directory

Example Prompts

  • "Search for all TODO comments in my project"
  • "Replace all occurrences of 'foo' with 'bar' in this file — show me a diff first"
  • "Pretty print this JSON and extract the users[0].email value"
  • "Parse this log file and summarize the errors"
  • "Convert this text to snake_case"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

txtool_mcp-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

txtool_mcp-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file txtool_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: txtool_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for txtool_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1a312e355145c94d52669391f09fe8dbfdfe13661b1a94dd6cd0c5c2af56fbcc
MD5 55ed6338e9e51d391f383524616fe1ad
BLAKE2b-256 94782785cab3091132f2164f584a37db7d82d060c69d060c0f8b9b1cd4c0b84b

See more details on using hashes here.

File details

Details for the file txtool_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: txtool_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for txtool_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a3785fa0085d32b365b7ab8fb1d4434debed858d9fb3394514d9104b12b528
MD5 d32f0c352af1447b3af20067b937cca3
BLAKE2b-256 0f348aa8e6074539cabc64a3e61e69dd01bb3e369aed81a522b6a4329ca4400c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page