
Mhlabs Mcp Tools
io.github.MusaddiqueHussainLabs由 GitHub 账号 MusaddiqueHussainLabs 发布v3.0.0更新于 Nov 3, 2026
An MCP server that provides text preprocessing, NLP components, and document analysis
概览
本地运行的 Python MCP 服务器,提供文本预处理、NLP 组件和文档分析工具,用于清洗与分析文本。
- 可以做什么
- 清洗文本:大小写转换,去除数字、网址、标点、特殊字符、多余空白、HTML、表情符号与颜文字
- 移除或脱敏邮箱、电话号码、社会安全号(SSN)和信用卡号等敏感模式
- 规范化文本:Unicode 规范化、缩写展开、聊天用语与表情转文字、去停用词、去高频词与低频词
- 分词:按词与按句切分,并进行词干化与词形还原
- 运行 NLP 组件:词性标注、词形学、依存句法分析、命名实体识别与规范化
- 通过一个组合预处理函数串联多个处理步骤
- 适用场景
- 适合在分析前需要清洗、脱敏或规范化原始文本的场景,也适合在本地完成分词、词性标注、词形还原和实体识别等基础 NLP 任务,而无需把文本发送到外部服务。
- 运行要求
- 以本地 Python 进程运行,从 PyPI 包 mhlabs-mcp-tools 安装,并通过 pip 安装依赖(含 fastmcp)。默认使用 STDIO 传输;HTTP/SSE 模式会占用端口。可选的 Azure AD 认证通过环境变量配置,如 MCP_ENABLE_AUTH、AZURE_TENANT_ID、AZURE_CLIENT_ID、AZURE_JWKS_URI、AZURE_ISSUER 和 AZURE_AUDIENCE。
安装
在 SourceWeft 中
- 打开 控制台中的 Mhlabs Mcp Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mhlabs-mcp-tools
mcp-name: io.github.MusaddiqueHussainLabs/mhlabs_mcp_tools
🧠 mhlabs-mcp-tools
mhlabs-mcp-tools is a Modular MCP Tools Server built using FastMCP.
It provides an extendable AI tool ecosystem organized into functional categories (Text Preprocessing, NLP Components, Document Analysis, etc.) that can be dynamically loaded and served through MCP (Model Context Protocol) via STDIO transport.
This project is part of the MHLabs AI Agentic Ecosystem, designed to work with mhlabs-mcp-server, mhlabs-mcp-agents, and downstream A2A agent frameworks.
Features
- FastMCP Server: Pure FastMCP implementation supporting multiple transport protocols
- Factory Pattern: Reusable MCP tools factory for easy service management
- Domain-Based Organization: Services organized by business domains (HR, Tech Support, etc.)
- Authentication: Optional Azure AD authentication support
- Multiple Transports: STDIO, HTTP (Streamable), and SSE transport support
- VS Code Integration: Debug configurations and development settings
- Comprehensive Testing: Unit tests with pytest
- Flexible Configuration: Environment-based configuration management
Architecture
Available Services
Currently the package is organized into three primary modules:
1. NLP Components
2. Text Preprocessing
This module equips users with an extensive set of text preprocessing tools:
Quick Start
Development Setup
-
Clone and Navigate:
-
Install Dependencies:
-
Configure Environment:
-
Start the Server:
Transport Options
1. STDIO Transport (default)
- 🔧 Perfect for: Local tools, command-line integrations, Claude Desktop
- 🚀 Usage:
python mcp_server.pyorpython mcp_server.py --transport stdio
2. HTTP (Streamable) Transport
- 🌐 Perfect for: Web-based deployments, microservices, remote access
- 🚀 Usage:
python mcp_server.py --transport http --port 9000 - 🌐 URL:
http://127.0.0.1:9000/mcp/
3. SSE Transport (deprecated)
- ⚠️ Legacy support only - use HTTP transport for new projects
- 🚀 Usage:
python mcp_server.py --transport sse --port 9000
FastMCP CLI Usage
VS Code Development
-
Open in VS Code:
-
Use Debug Configurations:
Debug MCP Server (STDIO): Run with STDIO transportDebug MCP Server (HTTP): Run with HTTP transportDebug Tests: Run the test suite
Configuration
Environment Variables
Create a .env file based on .env.example:
Authentication
When MCP_ENABLE_AUTH=true, the server expects Azure AD Bearer tokens. Configure your Azure App Registration with the appropriate settings.
For development, set MCP_ENABLE_AUTH=false to disable authentication.
Adding New Services
-
Create Service Class:
-
Register in Server:
-
Add Domain (if new):
MCP Client Usage
Python Client
Command Line Testing
Quick Test
Test STDIO Transport:
Test HTTP Transport:
Test with FastMCP CLI:
Troubleshooting
Common Issues
- Import Errors: Make sure you're in the correct directory and dependencies are installed
- Authentication Errors: Check your Azure AD configuration and tokens
- Port Conflicts: Change the port in configuration if 9000 is already in use
- Missing fastmcp: Install with
pip install fastmcp
Debug Mode
Enable debug mode for detailed logging:
Or set in environment:
Server Arguments
📄 License
MIT License © 2025 MusaddiqueHussain Labs
🤝 Contributing
- Follow the existing code structure and patterns
- Add tests for new functionality
- Update documentation for new features
- Use the provided VS Code configurations for development
🧠 Learn More
- MCP Protocol: https://modelcontextprotocol.io
- FastMCP GitHub: https://github.com/fastmcp/fastmcp
- LangGraph Integration Guide (coming soon)
💡 Tip
If you want to embed mhlabs-mcp-tools into a larger MCP-based orchestrator:
Developed with ❤️ by MusaddiqueHussain Labs
来源:README.md,提交 6c1b271
工具
0版本历史
1- v3.0.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分