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)

Add to ~/.claude/settings.json:

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

Restart → txtool tools appear automatically.

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.0.tar.gz (5.0 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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txtool_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 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.0.tar.gz
Algorithm Hash digest
SHA256 8fea62a6dfa17912f8cd61f5ac50d401e166746fcc0ff65d18143c0c3e36a818
MD5 83b0694e2106526e184051c4b5d8ac14
BLAKE2b-256 9c66b4747e5bf81f7c3a494670cfe2958c8387bb940e91bc7787786845220938

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txtool_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4e195db4ca62fbe700bc70fde79ad02df47af120f25d7f902ecb10b9ba0d426
MD5 d4a30269633c64f0e2dc7742cbf157b0
BLAKE2b-256 f2e2b5fef9cb6ab0d32c2a34a6c16a6323f56c966d5b0ec9693fb96abd60abeb

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