Graph MCP 服务器为 PuppyGraph 提供模型上下文协议 (MCP) 服务,允许 Claude 通过 Claude Desktop,使用 Gremlin 和 Cypher 查询图数据库。
在使用 Graph MCP 服务器之前,需要满足以下先决条件:
之后,按照以下步骤进行安装:
# 安装所有依赖项
npm install
# 启动开发服务器
npm start
# 构建生产环境版本
npm run build
# 安装所有依赖项
npm install
# 启动开发服务器
npm start
# 构建生产环境版本
npm run build
puppy-graph-mcp/
├── src/ # 源代码目录
│ ├── main.ts # 主程序入口
│ └── services/ # 外部服务接口实现
├── tests/ # 测试用例
└── package.json # 项目依赖和脚本
# 查询连接状态
puppygraph status
# 执行 Cypher 查询
puppygraph query --cypher "MATCH (n) RETURN count(n)"
# 执行 Gremlin 查询
puppygraph gremlin g.V().count()
当前版本为 v1.0.0,已通过基础测试和验证。
本项目采用 Apache 2.0 许可证。