A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/custom-discoveries/TigerGraph_MCP below:

GitHub - custom-discoveries/TigerGraph_MCP

Custom Discoveries TigerGraph-MCP V3.1 is a community based python Model Context Protocol server that exposes TigerGraph operations (queries, schema, vertices, edges, UDFs) as structured tools, prompts, and URI-based resources for MCP agents. This will allow you to interact with your TigerGraph Database using natural language commands!

  1. Requirements
  2. Features
  3. Admin Features (New with V3.0)
  4. Project Structure
  5. Installation
  6. Configuration
  7. Running Chat Bot
  8. Connecting to Claude Desktop
  9. Contributing
  10. License
  11. Releases

To execute the Admin Features, your database user will need to have the database role of 'superuser'. None of the tools will show up in the /tools list if the user isn't assigned the 'superuser' role.

TigerGraph-MCP/
├── installUVEnvironment.sh   # Intitalizes vitural environment if one exists, if not it will
                                create one, and load it with the project dependencies in the
                                requirements.txt file.
├── LICENSE                   # MIT License
├── main.py                   # MCP app bootstrap (`run_server()`) Used to start TigerGraph_MCP server
├── chatBot_Main.py           # Main python program to invoke mcp_chatbot.py
├── mcp_server
      ├── .env                # TigerGraph (HOST, GRAPH, SECRET) & LLM configuration paramaters
      ├── config.py           # Reads environment config file (.env) and defines System Constants
      ├── mcp_logger.py       # Sets up the log handler and sets Logging Level to ERROR
      ├── agents
            ├── ag2                # Directory that holds AG2 Agents
                 ├── chatAgent.py  # Chatbot using AG2 agent framework for LLM
            ├── agent_interface.py # Interface for implementing ChatAgent
            ├── prompts            # Directory that holds AG2 Agent prompts
                  ├── toolKitPrompt.py  # Prompts used by AG2 agent
            ├── toolBoxes          # Directory that holds AG2 Agent functions / "tools"
                  ├── mcpToolBox.py.    # Holds the functions / "tools
      ├── mcp_chatbot
            ├── mcp_chatbot.py     # Chatbot for LLM to interact with TigerGraph MCP Server (uses .env file)
            ├── server_config.json # Configuration file to define TigerGraph MCP Server
      ├── tigerGraph
            ├── interface.py      # Interface definitions of client methods
            ├── mcp_Server.py     # `@mcp.tool` and `@mcp.prompts` definitions, exposing client methods & prompts
            ├── prettyPrintDir.py # Implements pretty print directory functionality
            ├── services.py       # Implement service calls to TigerGraph database
            ├── session.py        # Encapsulates TigerGraphConnection and core session operations
       
├── Outputs                   # Output directory where Query outputs are written (.csv or .json format)
├── tests                     # test directory which containts all the tests cases written
    ├── README.md             # ReadMe file that has all the descriptions of the test cases in the tests directory
├── pyproject.toml            # Project metadata & dependencies
├── README.md                 # This markdown README file
├── requirements.txt          # Python package dependencies
├── runChatBot.sh             # Unix shell script to run TigerGraph ChatBot 
└── .gitignore                # Github/OS/Python ignore rules
  1. Clone the repo
    git clone https://github.com/customdiscoveries/TigerGraph_MCP.git
    cd TigerGraph-MCP
  2. Copy Example Configuration files
    cp mcp_server/.env-example .env
    cp mcp_server/mcp_chatbot/example-server_config.json server_config.json
  3. Create, Install Dependencies & Activate a virtual environment

MCP TigerGraph Server

The assumption is that the developer has a instance of TigerGraph running either in the cloud or on a Linux Desktop. Furthermore, it is assumed that the TigerGraph instance has a defined dba user (with valid roles and password).

Please edit your .env configuration (that you copied from the .env-exmaple) file with the following required attributes to create a TigerGraph session:

TigerGraph MCP ChatBot

The MCP ChatBot currently supports two LLMs, OPEN AI, an Anthropic claude.

  1. You will need to modify the .env (same as used in the mcp server) configuration file and set the LLM_MODEL_FAMILY attribute.
  1. You will need to update the server_config.json file (that you made a copy of) and edit the path to the run command with your full path name:

    "args": ["run", "/Your full path goes here/MCP-Repository/TigerGraph-MCP/main.py"]

Once you have completed all of your configuration setup. It is now time to see the fruit of your labor! To run the Chat Bot simply invoke the script runChatBot.sh

You should see a Welcome Banner:

Welcome to Custom Discoveries TigerGraph MCP Chatbot!
Type your queries or type ['quit'|'exit'] to exit.
Use /tools to list available tools
Use /prompts to list available prompts

Query:

At the Query prompt type /tools to get a list of avaialbe tools to interactive with TigerGraph Graph database.

Connecting to Claude Desktop

This MCP server can be installed into the Claude Desktop client so that Claude can invoke your TigerGraph tools directly: See link for setting up Claude Desktop at: https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server

Modify the configuration file at:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/YourFeature
  3. Commit your changes
    git commit -m "Add YourFeature"
  4. Push to branch
    git push origin feature/YourFeature
  5. Open a Pull Request

Please ensure all new code is covered by tests and follows PEP-8 style.

This project is licensed under the MIT License.

V3.1 is the latest release that can be found at:[https://github.com/custom-discoveries/TigerGraph_MCP/releases/tag/V3.1]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4