
Mhlabs Mcp Tools
io.github.MusaddiqueHussainLabsPublished by GitHub account MusaddiqueHussainLabsv3.0.0Updated Nov 3, 2026
An MCP server that provides text preprocessing, NLP components, and document analysis
Overview
A local Python MCP server exposing text preprocessing, NLP components and document analysis tools for cleaning and analyzing text.
- What you can do
- Clean text: lowercase/uppercase, strip numbers, URLs, punctuation, special characters, whitespace, HTML, emojis and emoticons
- Redact or remove sensitive patterns such as emails, phone numbers, SSNs and credit card numbers
- Normalize text: Unicode normalization, contraction expansion, chat-word and emoji/emoticon conversion, stopword, frequent-word and rare-word removal
- Tokenize words and sentences, stem and lemmatize
- Run NLP components: part-of-speech tagging, morphology, dependency parsing, named entity recognition and normalization
- Chain several steps through a combined preprocessing function
- When to use it
- Useful when an assistant needs to clean, anonymize or normalize raw text before analysis, or to run basic NLP tasks such as tokenization, POS tagging, lemmatization and entity recognition locally without sending text to an external service.
- Requirements
- Runs as a local Python process installed from the PyPI package mhlabs-mcp-tools, with dependencies installed via pip (including fastmcp). Default STDIO transport; HTTP/SSE modes bind a port. Optional Azure AD authentication uses environment variables such as MCP_ENABLE_AUTH, AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_JWKS_URI, AZURE_ISSUER and AZURE_AUDIENCE.
Installation
In SourceWeft
- Open Mhlabs Mcp Tools in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 6c1b271
Tools
0Version history
1- v3.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts