Skip to main content
Glama

TG_MCP

by Muzain187

TG_MCP

一体化

轻量级 Python 接口,将 TigerGraph 操作(查询、模式、顶点、边、UDF)公开为 MCP 代理的结构化工具和基于 URI 的资源。

目录

  1. 特征
  2. 项目结构
  3. 安装
  4. 配置
  5. 连接到克劳德
  6. 示例
  7. 贡献
  8. 执照

特征

  • 模式自省
    检索完整图形模式(顶点和边类型)。
  • 查询执行
    运行已安装的 GSQL 查询或带有参数的原始 GSQL 字符串。
  • 顶点和边的向上插入
    以编程方式创建或更新顶点和边。
  • 资源 URI
    通过tgraph://vertex/...tgraph://query/... URI 访问图形对象。
  • UDF 和算法清单
    获取已安装的用户定义函数和 GDS 算法目录。

项目结构

TG_MCP/ ├── config.py # Environment config (HOST, GRAPH, SECRET) ├── tg_client.py # Encapsulates TigerGraphConnection and core operations ├── tg_tools.py # `@mcp.tool` definitions exposing client methods ├── tg_resources.py # `@mcp.resource` URI handlers ├── main.py # MCP app bootstrap (`mcp.run()`) ├── pyproject.toml # Project metadata & dependencies ├── LICENSE # MIT License └── .gitignore # OS/Python ignore rules

安装

  1. 克隆 repo
    git clone https://github.com/Muzain187/TG_MCP.git cd TG_MCP
  2. 创建并激活虚拟环境
    python3 -m venv venv source venv/bin/activate
  3. 安装依赖项
    pip install .

    需要mcp[cli]>=1.6.0pyTigerGraph>=1.8.6

配置

运行前设置以下环境变量:

export TG_HOST=https://<your-tigergraph-host> export TG_GRAPH=<your-graph-name> export TG_SECRET=<your-api-secret>

这些由config.py读取。

连接到克劳德

此 MCP 服务器可以安装到Claude Desktop客户端中,以便 Claude 可以直接调用您的 TigerGraph 工具:

uv run mcp install main.py

运行上述程序后,重新启动 Claude Desktop,您将通过锤子🛠图标看到可用的 MCP 工具。

例子:

图像

图像

贡献

  1. 分叉存储库
  2. 创建功能分支
    git checkout -b feature/YourFeature
  3. 提交你的更改
    git commit -m "Add YourFeature"
  4. 推送到分支
    git push origin feature/YourFeature
  5. 打开拉取请求

请确保所有新代码都经过测试并遵循 PEP-8 风格。

执照

该项目已获得MIT 许可

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

轻量级 Python 接口,将 TigerGraph 数据库操作作为结构化工具和基于 URI 的资源公开给 Claude 和其他 MCP 代理。

  1. 目录
    1. 特征
      1. 项目结构
        1. 安装
          1. 配置
            1. 连接到克劳德
              1. 例子:
                1. 贡献
                  1. 执照

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.
                      Last updated -
                      1
                      Python
                      MIT License
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Python-based MCP server that allows Claude and other LLMs to execute arbitrary Python code directly through your desktop Claude app, enabling data scientists to connect LLMs to APIs and executable code.
                      Last updated -
                      26
                      MIT License
                      • Apple
                      • Linux
                    • A
                      security
                      F
                      license
                      A
                      quality
                      MCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.
                      Last updated -
                      1
                      5
                      4
                      JavaScript
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A Python server implementing the Model Context Protocol that exposes tools for querying external APIs, compatible with Claude Desktop and ChatGPT Desktop.
                      Last updated -
                      Python
                      • Linux
                      • Apple

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/Muzain187/TG_MCP'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server