mcp-knowledge-graph

moche-ai/mcp-knowledge-graph

3.2

If you are the rightful owner of mcp-knowledge-graph and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

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

Tools
6
Resources
0
Prompts
0

MCP Knowledge Graph

A Model Context Protocol (MCP) server that provides verified knowledge with trust scores, reasoning capabilities, and fact-checking.

🌐 Live Server: https://mcp.moche.ai

Why Use This?

Unlike simple document search (like Context7), this MCP server provides:

FeatureSimple SearchMCP Knowledge Graph
Document lookup
Trust scores✅ Verified information
Relationships✅ Dependencies, alternatives
Reasoning✅ "Why" and "How" answers
Best practices✅ Pitfalls and recommendations

Quick Start

Use the Public Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "knowledge-graph": {
      "transport": {
        "type": "sse",
        "url": "https://mcp.moche.ai/mcp/sse"
      }
    }
  }
}

Self-Host with Docker

# Clone the repository
git clone https://github.com/moche-ai/mcp-knowledge-graph.git
cd mcp-knowledge-graph

# Set environment variables
export NEO4J_PASSWORD=your_password

# Run with Docker Compose
docker compose up -d

Install from Source

pip install mcp-knowledge-graph

# Or install from source
pip install -e .

# Run the server
mcp-kg-server

Available Tools

ToolDescription
search_knowledgeSearch for verified information with trust scores
get_contextGet complete context: dependencies, alternatives, integrations
get_dependenciesGet dependency chain for installation order
get_alternativesFind alternative technologies/tools
get_best_practicesGet recommendations and pitfall warnings
get_statsGet knowledge graph statistics
infer_relationInfer relationships between two technologies
find_pathFind connection paths between concepts
recommendGet technology recommendations (similar, alternative, complement)
find_similarFind similar technologies by category/tags

Usage Examples

Search Knowledge

curl -X POST https://mcp.moche.ai/mcp/tools/call \
  -H "Content-Type: application/json" \
  -d '{
    "name": "search_knowledge",
    "arguments": {"query": "vector database", "min_trust": 0.8}
  }'

Get Context

curl https://mcp.moche.ai/knowledge/context/langchain

Get Dependencies

curl -X POST https://mcp.moche.ai/mcp/tools/call \
  -H "Content-Type: application/json" \
  -d '{
    "name": "get_dependencies",
    "arguments": {"name": "langgraph", "max_depth": 3}
  }'

API Endpoints

EndpointMethodDescription
/healthGETHealth check
/mcp/infoGETMCP server info
/mcp/tools/listGETList available tools
/mcp/tools/callPOSTCall a tool
/mcp/resources/listGETList resources
/mcp/resources/readPOSTRead a resource
/mcp/sseGETSSE streaming endpoint
/knowledge/searchGETREST search endpoint
/knowledge/context/{name}GETREST context endpoint
/knowledge/statsGETGraph statistics
/knowledge/infer/relationGETInfer relations between technologies
/knowledge/infer/pathGETFind paths between concepts
/knowledge/recommend/{name}GETGet recommendations
/knowledge/similar/{name}GETFind similar technologies
/knowledge/viewerGET3D Knowledge Graph Viewer
/docsGETOpenAPI documentation

Configuration

Environment VariableDefaultDescription
MCP_PORT8780Server port
NEO4J_URIbolt://localhost:7687Neo4j connection URI
NEO4J_USERneo4jNeo4j username
NEO4J_PASSWORD-Neo4j password (required)
MIN_TRUST_SCORE0.7Default minimum trust score

Trust Scores

All information has a trust score (0-1):

LevelScoreMeaning
Verified0.9-1.0From official sources (GitHub, official docs)
High0.7-0.9From trusted sources (ArXiv, reputable blogs)
Medium0.5-0.7Community-verified
Low0.3-0.5Single source, unverified
Unverified0.0-0.3Needs verification

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

MIT License - see for details.

Support

If you find this project helpful, consider supporting its development:

  • ⭐ Star this repository
  • 🐛 Report issues or suggest features
  • 💬 Share with others

ETH: 0x0000C4CE7f73886Cce8C43d4b481f0cBEbAC0000

Links


Made with ❤️ by MOCHE.AI