Back to MCP directory
publicPublicdnsLocal runtime

NebulaGraph

一个为NebulaGraph实现的模型上下文协议(MCP)服务器,提供对NebulaGraph的无缝访问,支持图探索、查询和快捷算法,易于与LLM工具系统集成。

article

README

🚀 NebulaGraph 模型上下文协议服务器

本项目是一个模型上下文协议 (MCP) 服务器的实现,可提供对 NebulaGraph 的访问,助力开发者更便捷地与 NebulaGraph 交互。

PyPI - 版本 PyPI - Python 版本 代码检查和测试

🚀 快速开始

本项目提供了对 NebulaGraph 的便捷访问,通过简单的安装和配置,即可开启图数据的探索之旅。

✨ 主要特性

  • 🔗 无缝访问 NebulaGraph 3.x,确保与最新版本的兼容性。
  • 🌍 为探索图世界做好准备,支持模式查看、查询操作,以及一些快捷算法。
  • 🤖 遵循模型上下文协议,方便与大型语言模型工具系统集成。
  • 📝 简单的命令行界面,支持通过环境变量和 .env 文件进行配置,降低使用门槛。

LlamaIndex 与 NebulaGraph MCP

📦 安装指南

使用以下命令安装 nebulagraph-mcp-server

pip install nebulagraph-mcp-server

💻 使用示例

基础用法

nebulagraph-mcp-server 将从 .env 加载配置,示例如下:

NEBULA_VERSION=v3 # 当前仅支持 v3
NEBULA_HOST=<你的 NebulaGraph 服务器主机>
NEBULA_PORT=<你的 NebulaGraph 服务器端口>
NEBULA_USER=<你的 NebulaGraph 服务器用户>
NEBULA_PASSWORD=<你的 NebulaGraph 服务器密码>

⚠️ 重要提示

需要将 NEBULA_VERSION 的值设置为 v3,直到我们准备好支持 v5。

🔧 开发

使用以下命令进行开发:

npx @modelcontextprotocol/inspector \
  uv 运行 nebulagraph-mcp-server

📄 致谢

此仓库的布局和工作流程是从 mcp-server-opendal 复制而来的,在此表示感谢。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client