Spaces:
Sleeping
A newer version of the Gradio SDK is available:
6.2.0
title: MissionControlMCP - Enterprise Automation Tools
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.48.0
app_file: app.py
pinned: false
tags:
- building-mcp-track-enterprise
- mcp-in-action-track-enterprise
- mcp
- anthropic
- enterprise-automation
- gradio-hackathon
- ai-agents
- mcp-server
π MissionControlMCP
Enterprise Automation MCP Server for Document Analysis, Data Processing & Business Intelligence
A fully functional Model Context Protocol (MCP) server providing 8 powerful enterprise automation tools for document processing, web scraping, semantic search, data visualization, and business analytics.
Built for the MCP 1st Birthday Hackathon β Winter 2025 (Tracks: Building MCP + MCP in Action - Enterprise).
π Hackathon Submission | π§ Both Tracks | π’ Enterprise Category
π± Social Media & Links
- π¬ Demo Video: Watch on YouTube β NEW
- π LinkedIn Post: View Announcement
- π Live Demo: Try on Hugging Face
- π» GitHub Repository: Source Code
π Table of Contents
- Overview
- Features
- Tools
- Installation
- Usage
- Tool Examples
- Claude Desktop Integration
- Development
- Testing
- Architecture
- Hackathon Submission
π― Overview
MissionControlMCP is an enterprise-grade MCP server that provides intelligent automation capabilities through 8 specialized tools. It enables AI assistants like Claude to perform complex document processing, data analysis, web research, and business intelligence tasks.
Key Capabilities
- π Document Processing: Extract text from PDFs, process and summarize content
- π Web Intelligence: Fetch and parse web content with clean text extraction
- π Semantic Search: RAG-based vector search using FAISS and sentence transformers
- π Data Visualization: Generate charts from CSV/JSON data
- π File Conversion: Convert between PDF, TXT, and CSV formats
- π§ Email Classification: Classify email intents using NLP
- π KPI Generation: Calculate business metrics and generate insights
π§ͺ Quick Test
# Test all tools with sample files
python demo.py
See TESTING.md for complete testing guide with examples!
β¨ Features
- β 8 Production-Ready Tools for enterprise automation
- β MCP Compliant - Works with Claude Desktop and any MCP client
- β Type-Safe - Built with Python 3.11+ and type hints
- β Modular Architecture - Clean separation of concerns
- β Comprehensive Testing - Test suite included
- β Well Documented - Clear schemas and examples
- β Vector Search - RAG implementation with FAISS
- β Data Visualization - Base64 encoded chart generation
- β NLP Classification - Rule-based intent detection
π οΈ Tools
1. pdf_reader
Extract text and metadata from PDF files.
Input:
file_path: Path to PDF file
Output:
- Extracted text from all pages
- Page count
- Document metadata (author, title, dates)
2. text_extractor
Process and extract information from text.
Input:
text: Raw text to processoperation: 'clean', 'summarize', 'chunk', or 'keywords'max_length: Max length for summaries (default: 500)
Output:
- Processed text
- Word count
- Operation metadata
3. web_fetcher
Fetch and extract content from web URLs.
Input:
url: URL to fetchextract_text_only: Extract text only (default: true)
Output:
- Clean text content or HTML
- HTTP status code
- Response metadata
4. rag_search
Semantic search using RAG (Retrieval Augmented Generation).
Input:
query: Search querydocuments: List of documents to searchtop_k: Number of results (default: 3)
Output:
- Ranked search results with similarity scores
- Document snippets
- Relevance rankings
5. data_visualizer
Create data visualizations and charts.
Input:
data: JSON or CSV string datachart_type: 'bar', 'line', 'pie', or 'scatter'x_column,y_column: Column namestitle: Chart title
Output:
- Base64 encoded PNG image
- Chart dimensions
- Column information
6. file_converter
Convert files between formats.
Input:
input_path: Path to input fileoutput_format: 'txt', 'csv', or 'pdf'output_path: Optional output path
Output:
- Output file path
- Conversion status
- File size
Supported Conversions:
- PDF β TXT
- TXT β CSV
- CSV β TXT
7. email_intent_classifier
Classify email intent using NLP.
Input:
email_text: Email content to classify
Output:
- Primary intent (inquiry, complaint, request, feedback, meeting, order, urgent, follow_up, thank_you, application)
- Confidence score
- Secondary intents
8. kpi_generator
Generate business KPIs and insights.
Input:
data: JSON string with business datametrics: List of metrics - 'revenue', 'growth', 'efficiency', 'customer', 'operational'
Output:
- Calculated KPIs
- Executive summary
- Key trends and insights
π¦ Installation
Prerequisites
- Python 3.11 or higher
- pip or uv package manager
Setup
- Clone or download the repository:
cd mission_control_mcp
- Install dependencies:
pip install -r requirements.txt
Or using uv:
uv pip install -r requirements.txt
Dependencies
mcp- Model Context Protocol SDKpypdf2- PDF processingrequests+beautifulsoup4- Web scrapingpandas+numpy- Data processingfaiss-cpu+sentence-transformers- Vector searchmatplotlib+seaborn- Data visualizationscikit-learn+nltk- NLP and ML
π Usage
Running the Server
For Development/Testing:
uvx mcp dev mission_control_mcp/mcp_server.py
Or with Python directly:
python mcp_server.py
For Production:
The server runs via stdio and is designed to be integrated with MCP clients like Claude Desktop.
π‘ Tool Examples
Example 1: Text Extraction & Summarization
{
"tool": "text_extractor",
"arguments": {
"text": "Your long document text here...",
"operation": "summarize",
"max_length": 200
}
}
Example 2: Web Content Fetching
{
"tool": "web_fetcher",
"arguments": {
"url": "https://example.com/article",
"extract_text_only": true
}
}
Example 3: Semantic Search
{
"tool": "rag_search",
"arguments": {
"query": "machine learning algorithms",
"documents": [
"Document 1 about neural networks...",
"Document 2 about decision trees...",
"Document 3 about clustering..."
],
"top_k": 3
}
}
Example 4: Data Visualization
{
"tool": "data_visualizer",
"arguments": {
"data": "{\"month\": [\"Jan\", \"Feb\", \"Mar\"], \"sales\": [1000, 1500, 1200]}",
"chart_type": "bar",
"x_column": "month",
"y_column": "sales",
"title": "Q1 Sales Report"
}
}
Example 5: Email Intent Classification
{
"tool": "email_intent_classifier",
"arguments": {
"email_text": "Hi, I need help with my recent order. It hasn't arrived yet and I'm wondering about the tracking status."
}
}
Example 6: KPI Generation
{
"tool": "kpi_generator",
"arguments": {
"data": "{\"revenue\": 1000000, \"costs\": 600000, \"customers\": 500, \"current_revenue\": 1000000, \"previous_revenue\": 800000}",
"metrics": ["revenue", "growth", "efficiency"]
}
}
π₯οΈ Claude Desktop Integration
Configuration
Add to your Claude Desktop config file (claude_desktop_config.json):
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mission-control": {
"command": "python",
"args": [
"C:/Users/YourUser/path/to/mission_control_mcp/mcp_server.py"
]
}
}
}
Or with uvx:
{
"mcpServers": {
"mission-control": {
"command": "uvx",
"args": [
"mcp",
"run",
"C:/Users/YourUser/path/to/mission_control_mcp/mcp_server.py"
]
}
}
}
Usage in Claude
After configuration, restart Claude Desktop. You can then ask Claude to:
- "Extract text from this PDF file"
- "Fetch content from this website and summarize it"
- "Search these documents for information about X"
- "Create a bar chart from this sales data"
- "Classify the intent of this email"
- "Generate KPIs from this business data"
π§ͺ Testing
Run the comprehensive demo:
python demo.py
The demo includes:
- Text extraction and processing tests
- Web fetching tests
- RAG search demonstrations
- Data visualization generation
- Email classification examples
- KPI calculation tests
- Example JSON inputs for all tools
ποΈ Architecture
mission_control_mcp/
βββ mcp_server.py # Main MCP server
βββ app.py # Gradio web interface
βββ demo.py # Demo & test suite
βββ requirements.txt # Dependencies
βββ README.md # Documentation
β
βββ tools/ # Tool implementations
β βββ pdf_reader.py
β βββ text_extractor.py
β βββ web_fetcher.py
β βββ rag_search.py
β βββ data_visualizer.py
β βββ file_converter.py
β βββ email_intent_classifier.py
β βββ kpi_generator.py
β
βββ models/ # Data schemas
β βββ schemas.py
β
βββ utils/ # Utilities
βββ helpers.py # Helper functions
βββ rag_utils.py # RAG/vector search utilities
Design Principles
- Modularity: Each tool is independently implemented
- Type Safety: Pydantic schemas for validation
- Error Handling: Comprehensive error catching and logging
- Clean Code: Well-documented with docstrings
- Testability: Easy to test individual components
ποΈ Hackathon Submission
Track 1: MCP Server
Server Name: MissionControlMCP
Description: Enterprise automation MCP server providing 8 specialized tools for document processing, web intelligence, semantic search, data visualization, and business analytics.
Key Features for Judges
- Production-Ready: All 8 tools are fully implemented and tested
- MCP Compliant: Follows MCP specification precisely
- Real-World Value: Solves actual enterprise automation needs
- Clean Architecture: Modular, maintainable, well-documented code
- Advanced Features: RAG search with FAISS, data visualization, NLP classification
- Comprehensive Testing: Full test suite with examples
- Easy Integration: Works seamlessly with Claude Desktop
Technical Highlights
- Vector Search: FAISS-based semantic search with sentence transformers
- NLP Classification: Rule-based email intent classifier with confidence scoring
- Data Visualization: Dynamic chart generation with matplotlib
- File Processing: Multi-format support (PDF, TXT, CSV)
- Web Intelligence: Smart web scraping with clean text extraction
- Business Intelligence: KPI calculation with trend analysis
π Documentation & Examples
- EXAMPLES.md - Real-world use cases, workflows, and ROI examples
- TESTING.md - Complete testing guide with examples
- ARCHITECTURE.md - System design and architecture details
- API.md - Complete API documentation
- examples/ - Sample files for testing all tools:
sample_report.txt- Business report for text extractionbusiness_data.csv- Financial data for visualization & KPIssample_email_*.txt- Email samples for intent classificationsample_documents.txt- Documents for RAG search testing
οΏ½π License
This project is licensed under the MIT License - see the LICENSE file for details.
Created for the MCP 1st Birthday Hackathon β Winter 2025.
π€ Contributing
This project was built for the hackathon, but improvements and suggestions are welcome! Check out EXAMPLES.md for usage patterns and best practices.
π§ Contact
For questions about this MCP server, please reach out through the hackathon channels.
π Acknowledgments
- Built with the Model Context Protocol SDK
- Powered by sentence-transformers, FAISS, and other open-source libraries
- Created for the MCP 1st Birthday Hackathon 2025
Happy Automating! π