Multi-Agent Context Enrichment System with Auto-Detection and Tool Orchestration
Context[X]MCP is a Model Context Provider (MCP) server that enables intelligent context enrichment through a multi-agent system with distributed specialized roles, auto-topic detection, and dynamic tool orchestration.
Enrich your AI context automatically - Works seamlessly with Cursor, Claude Desktop, VS Code, and other MCP-compatible applications while integrating Browser[X]MCP and other MCP tools.
- Context Coordinator: Intelligent topic detection and agent routing
- Browser Research Agent: Web research using Browser[X]MCP integration
- Memory Agent: Context history and pattern recognition
- Tool Orchestrator: Dynamic MCP tool discovery and management
- Quality Assessment: Context relevance scoring and verification
- Topic Detection: Automatic context classification and intent recognition
- Tool Selection: Dynamic selection of optimal MCP tools based on context
- Context Enrichment: Multi-source data gathering and synthesis
- Pattern Learning: Adaptive improvement based on usage patterns
- Distributed Processing: Specialized agents with narrow-focused roles
- Task Distribution: Intelligent workload balancing across agents
- Result Aggregation: Comprehensive context assembly from multiple sources
- Conflict Resolution: Smart handling of contradictory information
- Web Research: Automated browser-based data collection
- Real-time Extraction: Dynamic content discovery and analysis
- Form Interaction: Advanced web form handling and data extraction
- Link Analysis: Intelligent navigation and content mapping
- Vector Storage: Efficient context history with similarity search
- Relevance Scoring: AI-powered context quality assessment
- Memory Persistence: Long-term context pattern storage
- Performance Metrics: Real-time agent coordination efficiency
- Tool Discovery: Automatic MCP tool capability mapping
- Performance Optimization: Response time and accuracy optimization
- Resource Management: Efficient agent resource allocation
- Scalability: Horizontal scaling for complex contexts
# Clone the repository
git clone https://github.com/rnd-pro/context-x-mcp.git
cd context-x-mcp
# Install dependencies
npm install
# Copy environment configuration
cp .env.example .env
# Start the server
npm startAdd to your MCP client configuration:
{
"mcpServers": {
"context-x-mcp": {
"command": "node",
"args": ["/path/to/context-x-mcp/src/server/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}// Example: Auto-enriched context request
await mcp.request("enrich_context", {
query: "Analyze current AI trends in browser automation",
depth: "comprehensive",
sources: ["web", "academic", "news"]
});┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ MCP Client │───▶│ Context[X]MCP │───▶│ Browser[X]MCP │
│ (Cursor/CLI) │ │ Coordinator │ │ Agent │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
┌───────┴───────┐
▼ ▼
┌──────────────┐ ┌─────────────┐
│ Memory Agent │ │Tool Orch. │
│ History │ │ Agent │
└──────────────┘ └─────────────┘
│ │
▼ ▼
┌──────────────┐ ┌─────────────┐
│Quality Agent │ │Other MCP │
│ Assessment │ │ Tools │
└──────────────┘ └─────────────┘
- Context Coordinator Agent - Main orchestration and routing
- Browser Research Agent - Web-based data collection
- Context Memory Agent - History and pattern management
- Tool Orchestrator Agent - MCP tool coordination
- Quality Assessment Agent - Result validation and scoring
enrich_context- Comprehensive context enrichmentdetect_topic- Automatic topic classificationsearch_history- Context history retrievalassess_quality- Context relevance scoring
route_request- Intelligent agent routingaggregate_results- Multi-source result combinationoptimize_performance- System performance tuning
browser_research- Browser[X]MCP integrationtool_discovery- MCP tool capability mappingpattern_analysis- Usage pattern recognition
# MCP Server Configuration
MCP_PORT=3002
NODE_ENV=development
# Agent Configuration
AGENT_MAX_CONCURRENCY=5
AGENT_TIMEOUT=30000
# Context Settings
CONTEXT_HISTORY_SIZE=1000
CONTEXT_RELEVANCE_THRESHOLD=0.7
# Browser[X]MCP Integration
BROWSER_X_MCP_URL=http://localhost:3001
BROWSER_X_MCP_ENABLED=true
# Vector Storage
VECTOR_DB_PATH=./data/vectors
VECTOR_SIMILARITY_THRESHOLD=0.8
# Quality Assessment
QUALITY_MIN_SCORE=0.6
QUALITY_MAX_SOURCES=10# Run all tests
npm test
# Test multi-agent coordination
npm run test:agents
# Test MCP integration
npm run test:integration
# Run mock tests (no external dependencies)
npm run test:mockcontext-x-mcp/
├── src/
│ ├── server/ # MCP server implementation
│ ├── agents/ # Multi-agent system
│ ├── core/ # Core functionality
│ └── utils/ # Utilities and helpers
├── test/ # Test suites
├── docs/ # Documentation
├── examples/ # Usage examples
└── assets/ # Assets and resources
// Automatic web research with form testing
const result = await contextXMCP.enrichContext({
query: "Research e-commerce checkout optimization",
enableBrowserResearch: true,
testForms: true,
maxSources: 5
});// Coordinate multiple MCP tools
const enrichedContext = await contextXMCP.orchestrateTools({
query: "Analyze competitor pricing strategies",
tools: ["browser-x-mcp", "data-analysis-mcp", "report-generator-mcp"],
coordination: "parallel"
});- Project structure setup
- Basic MCP server implementation
- Agent framework foundation
- Context Coordinator implementation
- Browser Research Agent integration
- Basic topic detection
- Vector-based context memory
- Quality assessment system
- Multi-tool orchestration
- Performance optimization
- Advanced pattern learning
- Production deployment
We welcome contributions! Please see our Contributing Guide for details.
# Clone the repository
git clone https://github.com/rnd-pro/context-x-mcp.git
cd context-x-mcp
# Install dependencies
npm install
# Start development server
npm run dev- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-context-feature - Commit changes:
git commit -m 'Add amazing context feature' - Push to branch:
git push origin feature/amazing-context-feature - Open a Pull Request
MIT License - see LICENSE file for details.
Developed by RND-PRO Team
- GitHub: rnd-pro
- 💼 Professional development team specializing in innovative AI solutions
- 🤖 Experts in multi-agent systems and context enrichment technologies
- 🚀 Leaders in MCP protocol implementations and intelligent automation
- Built on Model Context Protocol (MCP)
- Integrates with Browser[X]MCP
- Inspired by multi-agent AI architectures and distributed systems
- Natural language processing powered by advanced NLP libraries
- 📧 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 📖 Documentation: Repository docs
Made with ❤️ by RND-PRO Team for the AI context enrichment community
![Context[X]MCP Banner](/rnd-pro/context-x-mcp/raw/main/assets/logo/context-x-mcp-banner.png)