mpaulgreen
MCP Servermpaulgreenpublic

mcp text edit

一个基于MCP协议的文本处理工具,支持字符和单词统计。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

一个基于MCP协议的文本处理工具,支持字符和单词统计。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Text Assist MCP Server

This example MCP server provides basic tools for counting characters and words in a given text. The example shows how MCP servers are built using the Python SDK and demonstrates how MCP server tools are just standard Python functions in an MCP wrapper.

Requirements

  • Claude.ai account (MCP support is available for all account types)
  • Claude Desktop app, available for macOS and Windows
  • uv:
    • macOS via Homebrew:
    brew install uv
    
    • Windows via WinGet:
    winget install --id=astral-sh.uv  -e
    
  • A code editor like Visual Studio Code

Installation

uv run

Development

  1. Start the virtual environment

    source .venv/bin/activate
    

    NOTE: To stop the virtual environment:

    deactivate
    
  2. Run MCP server in dev mode with the MCP Inspector:

    mcp dev server.py
    

Run MCP server in Claude Desktop

  1. Open claude_desktop_config.js in an editor:

    File location:

    • MacOS / Linux ~/Library/Application/Support/Claude/claude_desktop_config.json
    • Windows AppData\Claude\claude_desktop_config.json
  2. Find the full path to uv:

    • MacOS / Linux:
    which uv
    
    • Windows:
    where uv
    
  3. In claude_desktop_config.js

    {
       "mcpServers": {
         "text-assist": {
           "command": "/absolute/path/to/uv",
           "args": [
             "run",
             "--with",
             "mcp[cli]",
             "mcp",
             "run",
             "/absolute/path/to/text-assist/server.py"
           ]
         }
       }
    }
    
  4. Reboot Claude Desktop and use a prompt that will trigger your MCP.

Usage

In Claude Desktop, you can:

  • Count the total number of characters in a text
  • Count characters excluding spaces
  • Count words in a text
  • Count occurrences of specific letters
  • Get a full text analysis including:
    • Total character count
    • Character count without spaces
    • Word count
    • Space count
    • Character frequency distribution

Quick Start

1

Clone the repository

git clone https://github.com/mpaulgreen/mcp-text-edit
2

Install dependencies

cd mcp-text-edit
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownermpaulgreen
Repomcp-text-edit
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation