Back to Home
moche-ai icon

mcp-knowledge-graph

by moche-ai

Overview

Provides a Model Context Protocol (MCP) server for verified knowledge with trust scores, reasoning capabilities, and fact-checking.

Installation

Run Command
mcp-kg-server

Environment Variables

  • NEO4J_PASSWORD

Security Notes

The `/knowledge/collect` endpoint in `src/api/server.py` uses `sys.path.insert` to add `/data/apps/agents/src` to Python's import path, then dynamically imports modules. This creates a critical vulnerability: if an attacker can gain write access to `/data/apps/agents/src` (e.g., through container compromise or misconfigured volumes), they can inject malicious Python modules, leading to arbitrary code execution on the server. Proper container security and access controls are paramount to mitigate this specific risk. Other aspects like Neo4j credential handling via environment variables and controlled tool execution (using `getattr` on predefined methods) are more secure.

Similar Servers

Stats

Interest Score36
Security Score3
Cost ClassLow
Avg Tokens750
Stars1
Forks0
Last Update2025-11-27

Tags

knowledge-graphMCPAIfact-checkingreasoning