t

text_alalyzer

@suteeee/text_alalyzer
0 Stars 9 次浏览 suteeee 更新于 2026-08-23
该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Text Analyzer MCP Server

AI FastMCP .

(Tools)

  1. count_characters(text, include_spaces) -

  2. count_words(text) -

  3. analyze_character_types(text) -

    • , , ,
    • , ,
  4. get_text_statistics(text) -

    • , , ,
  5. check_text_length_limit(text, max_length) -

    • /

  • text_analyzer://help -

1.

#  
python -m venv venv

#  
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate

#  
pip install -r requirements.txt

2.

()

# MCP Inspector   (  )
fastmcp dev text_analyzer_server.py

# Python  
python text_analyzer_server.py

#  FastMCP CLI 
fastmcp run text_analyzer_server.py

3. AI

Claude Desktop

claude_desktop_config.json :

{
  "mcpServers": {
    "text_analyzer": {
      "command": "python",
      "args": ["/path/to/text_analyzer_server.py"]
    }
  }
}

VS Code/Cursor

.vscode/mcp.json .cursor/mcp.json :

{
  "servers": {
    "text_analyzer": {
      "type": "stdio",
      "command": "python",
      "args": ["/path/to/text_analyzer_server.py"]
    }
  }
}

# AI   
# " Hello World!"   .

count_characters(" Hello World!", True)
# : 
# {
#   "total_characters": 18,
#   "characters_without_spaces": 16,
#   "spaces_count": 2,
#   "final_count": 18
# }

get_text_statistics("!   .")
# , ,      

check_text_length_limit(" ", 100)
# 100     

MCP FastMCP .

  1. ** **:
  2. ** **: MCP
  3. ** **: Python

#   
fastmcp dev text_analyzer_server.py --verbose

MIT License

GitHub Issues  .

相关 MCP 服务