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.

Install

pip install txtool-mcp

Usage

Claude Desktop

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

{
  "mcpServers": {
    "txtool": {
      "command": "python3",
      "args": ["-m", "txtool_mcp.server"]
    }
  }
}

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 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.1.tar.gz (5.1 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txtool_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 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.1.tar.gz
Algorithm Hash digest
SHA256 c0d5da466343446a2adb1ddd5f291f1c0d8e91ac3209ee639c9d306af275baf6
MD5 5d3c660dc159f1b32cc996c4d65d4dd7
BLAKE2b-256 56e6bcc729e8126c306db05ee84559535c4745e1b0a69a3d83aabb378281d3c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txtool_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4d8b634531bdea56397d0d237629542f8af3372a5f2559e8b491a19b489d1d
MD5 51f76bf0593654f8a16a814bde6ae1c6
BLAKE2b-256 e4023250871f5133513cee3bc1ee9d56b1e334a254cfea420ece93dce2060259

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