polymath-mcp
Verified Safeby seanshin0214
Overview
A Polymath MCP server designed as a 'second brain' to support interdisciplinary knowledge fusion and new concept creation through semantic search, socratic dialogue, and application of fusion thinking patterns across 30+ academic domains.
Installation
python -m src.serverEnvironment Variables
- POLYMATH_BASE_PATH
- CHROMA_PATH
- KNOWLEDGE_PATH
- NEO4J_URI
- NEO4J_USER
- NEO4J_PASSWORD
- OPENAI_API_KEY
- USE_LOCAL_EMBEDDINGS
- USE_NEO4J
- VECTOR_WEIGHT
- GRAPH_WEIGHT
Security Notes
The server primarily interacts via the Claude Desktop MCP protocol or FastAPI endpoints. Input data (queries, content, statements) is generally passed to internal engines (RAG, Socratic) or database operations (ChromaDB, Neo4j) using parameterized queries, mitigating direct injection risks. There are no obvious 'eval' or direct arbitrary command execution from user input in the provided code. Default Neo4j credentials ('neo4j', 'password') are hardcoded but can be overridden by environment variables, which is a common practice for development defaults; users should change these for production. The `add_knowledge` tool allows users to add arbitrary markdown content; if a client application renders this content without proper sanitization, it could pose a Cross-Site Scripting (XSS) risk to the client, but the server itself does not execute the content.
Similar Servers
sparql-llm
An LLM-powered agent for generating, validating, and executing SPARQL queries against biomedical knowledge graphs, utilizing Retrieval-Augmented Generation (RAG) with endpoint-specific metadata and schema for improved accuracy.
flexible-graphrag
The Flexible GraphRAG MCP Server integrates document processing, knowledge graph building, hybrid search, and AI query capabilities via the Model Context Protocol (MCP) for clients like Claude Desktop and MCP Inspector.
qdrant-loader
A Model Context Protocol (MCP) server that provides advanced Retrieval-Augmented Generation (RAG) capabilities to AI development tools by bridging a QDrant knowledge base for intelligent, context-aware search.
memory-journal-mcp
Provides persistent project memory and integrates GitHub workflows (issues, PRs, Kanban) to bridge fragmented AI sessions for developers.