Back to Home
pratikjadhav2726 icon

Unified-MCP-Tool-Graph

by pratikjadhav2726

Overview

The Unified MCP Tool Graph aggregates and structures tool APIs from diverse Model Context Protocol (MCP) servers into a centralized Neo4j graph database, enabling LLMs and agentic AI systems to dynamically retrieve the most relevant tools for any task.

Installation

Run Command
uv run python start_unified_gateway.py

Environment Variables

  • NEO4J_URI
  • NEO4J_USER
  • NEO4J_PASSWORD
  • TAVILY_API_KEY
  • GROQ_API_KEY
  • GITHUB_TOKEN
  • ANTHROPIC_API_KEY
  • GOOGLE_API_KEY
  • GATEWAY_PORT
  • PROXY_PORT
  • LOG_LEVEL

Security Notes

The system dynamically fetches and executes server configurations from potentially arbitrary GitHub repositories for new tools. The `MCPServerManager` uses `subprocess.Popen` with commands and arguments derived from these configurations. While `extract_config_from_github_async` attempts to filter commands (to 'npx' or 'python'), these can still execute arbitrary code if a malicious configuration is provided (e.g., from a compromised GitHub repository or a crafted JSON in a README). This introduces a significant supply chain and remote code execution risk, as the integrity of external configurations cannot be fully guaranteed. No direct `eval()` or `os.system()` with unsanitized user input was found, but the dynamic execution of external commands is a high-risk pattern.

Similar Servers

Stats

Interest Score41
Security Score4
Cost ClassMedium
Avg Tokens750
Stars25
Forks3
Last Update2025-12-02

Tags

Dynamic Tool RetrievalLLM OrchestrationGraph DatabaseMCPAgentic AI