Back to Home
zikifaker icon

diabetes-agent-mcp-server

Verified Safe

by zikifaker

Overview

Serves as a Middle-ware Call Protocol (MCP) server providing specialized tools for diabetes knowledge graph search and user-specific knowledge base retrieval, primarily supporting Retrieval Augmented Generation (RAG) for AI agents.

Installation

Run Command
go run .

Security Notes

The JWT secret key and database credentials are loaded from a configuration file, which is good practice. However, several database queries are constructed using string concatenation instead of fully parameterized queries. In `tools/diabetes_kg.go`, the Neo4j fulltext search query uses manual escaping for single quotes within the search string; while an attempt at sanitization, it's generally less robust than parameterized queries. In `tools/knowledge_base.go`, the Milvus filter uses string concatenation, though the user email is derived from validated JWT claims, mitigating risk. A significant Cypher injection vulnerability exists in `cmd/knowledge-graph/main.go`'s `saveRelation` function, where `relation.RelationType` is directly inserted into the query via `fmt.Sprintf`. This tool is for data ingestion from presumably trusted JSON files, but it highlights a potential weak point if source data or the ingestion process could be compromised. No hardcoded secrets were found in the main server code. For production, loading configuration via environment variables is generally preferred over only a local `config.yaml`.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2026-01-01

Tags

DiabetesKnowledge GraphRAGMCP ServerGoVector Database