
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 分