Skip to main content

No project description provided

Project description

TigerGraph-MCP

TigerGraph-MCP enables AI agents to interact with TigerGraph through the Model Context Protocol (MCP). It exposes TigerGraph's graph capabilities via an MCP-compliant API, allowing LLM-based agents to retrieve contextual data, perform actions, and reason with connected information.


Requirements

This project requires Python 3.10, 3.11, or 3.12 and TigerGraph 4.1 or later. Ensure you meet the following prerequisites before proceeding:

1. Python

  • Ensure Python 3.10, 3.11, or 3.12 is installed on your system.
  • You can download and install it from the official Python website.

2. TigerGraph

TigerGraph version 4.1 or higher is required to run TigerGraph-MCP. You can set it up using one of the following methods:

  • TigerGraph DB: Install and configure a local instance.
  • TigerGraph Savanna: Use a managed TigerGraph instance in the cloud.
  • TigerGraph Docker: Run TigerGraph in a containerized environment.
  • ⚠️ Minimum Required Version: TigerGraph 4.1
  • Recommended Version: TigerGraph 4.2+ to enable TigerVector and advanced hybrid retrieval features.

Download from the TigerGraph Downloads page, and follow the official documentation for setup.


Installation Steps

Option 1: Install from PyPI

The easiest way to get started is by installing TigerGraph-MCP from PyPI. A virtual environment is recommended:

pip install tigergraph-mcp

Verify Installation

Run the following command to verify the installation:

python -c "import tigergraph_mcp; print('TigerGraph-MCP installed successfully!')"

Expected output:

TigerGraph-MCP installed successfully!

Option 2: Build from Source

If you want to explore or modify the code, clone the repository and install it manually. TigerGraph-MCP uses Poetry to manage dependencies.

First, install Poetry by following the Poetry installation guide.

Then, clone the repo and install:

git clone https://github.com/TigerGraph-DevLabs/tigergraph-mcp.git
cd tigergraph-mcp

Core Installation

If you need only the core functionality of TigerGraph-MCP (without running application examples like AI Agent, unit tests, or integration tests), run:

poetry env use python3.12  # Replace with your Python version (3.10–3.12)
poetry install --without dev

This command will:

  • Install only the dependencies required for the core features of TigerGraph-MCP.

Development Installation

If you’re contributing to the project or want to use advanced features like running the AI Agent examples or test cases, run:

poetry env use python3.12  # Replace with your Python version (3.10–3.12)
poetry install --with dev

This command will:

  • Install all core dependencies.
  • Include development dependencies defined under [tool.poetry.group.dev.dependencies] in pyproject.toml.

Verify Setup

After installing dependencies, verify your setup by listing the installed packages:

poetry show --with dev

This ensures all required dependencies (including optional ones) are successfully installed.

Activate the Virtual Environment

Activate the environment using:

eval $(poetry env activate)

For more information about managing virtual environments in Poetry, please refer to the official documentation: Managing Environments.

🚀 Getting Started: Choose Your Interface

We recommend LangGraph as the preferred interface for using TigerGraph-MCP, especially for advanced workflows like schema creation, data loading, and algorithm orchestration. However, if your workflow is relatively simple or you're just getting started, CrewAI may be easier to adopt initially. GitHub Copilot Chat is also supported for lightweight use cases directly in VS Code.

TigerGraph-MCP supports three main interfaces:

✅ Recommended: Using TigerGraph-MCP Tools with LangGraph

LangGraph is ideal for building stateful, agent-based workflows that involve complex tool chaining and strict schema compliance. It offers the highest level of flexibility and control for power users and is the recommended framework going forward.

Using TigerGraph-MCP Tools with CrewAI

CrewAI was the original framework used for implementing agentic workflows in TigerGraph-MCP. It provides a simpler and more approachable starting point, especially for basic workflows. However, as our workflows grew in complexity, CrewAI’s limitations in agent definition and orchestration became more apparent. We now recommend LangGraph for most use cases, unless your workflow remains relatively simple.

Using TigerGraph-MCP Tools with GitHub Copilot Chat in VS Code

For quick tasks or straightforward tool invocations, you can use GitHub Copilot Chat directly in VS Code. This works well for simple tools, but may struggle with the nested parameters and best practices required by more advanced operations like data loading or schema creation.

Core MCP Features

TigerGraph-MCP currently supports 34 MCP tools that cover a broad spectrum of functionalities, including:

Graph Operations

  • Manage schemas
  • Handle data loading and clearing
  • Manipulate nodes and edges
  • Access graph data
  • Execute queries such as breadth-first search and neighbor retrieval

Vector Operations

  • Perform vector upserts and fetches
  • Conduct multi-attribute similarity searches
  • Retrieve top-k similar nodes

Database Operations

  • Manage external data sources by creating, dropping, and previewing sample data

Roadmap

We are continuously working on enhancing our features. Our upcoming improvements include:

Enhanced API Support

  • Expand API coverage to include comprehensive database-level functionalities

Schema Management

  • Support dynamic schema updates
  • Implement keyword validation
  • Enable real-time schema refresh

Data Loading

  • Facilitate data ingestion from local files
  • Offer granular control over loading job creation and execution

NetworkX Compatibility

  • Extend node, edge, and neighbor operations to closely mirror the NetworkX interface

Graph Algorithms

  • Integrate commonly used graph algorithms for built-in analytics

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tigergraph_mcp-0.2.3.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigergraph_mcp-0.2.3-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

File details

Details for the file tigergraph_mcp-0.2.3.tar.gz.

File metadata

  • Download URL: tigergraph_mcp-0.2.3.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.6.0

File hashes

Hashes for tigergraph_mcp-0.2.3.tar.gz
Algorithm Hash digest
SHA256 640eda659dcfe7abe01085974ac7a0fad757fc3492dd2e9adbed381082c8a010
MD5 783eb737c11c9529d149516927805c8f
BLAKE2b-256 6a8ae9077a9e6397aa3039b38f355ccd4f91d51f20536ad33e6ebd001ac9a157

See more details on using hashes here.

File details

Details for the file tigergraph_mcp-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: tigergraph_mcp-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 68.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.6.0

File hashes

Hashes for tigergraph_mcp-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bcf3daadcccc48345ae218d4f3f7be591ecd873747ee1ef0cd3582cbb4bed7bb
MD5 a75d9b94564ab31659a29bc6d312887c
BLAKE2b-256 d12530f44525cfebefe47972bcc35b021852026c6f26894ba4bc31392b2dba2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page