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.0.tar.gz (27.9 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.0-py3-none-any.whl (67.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigergraph_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 27.9 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.0.tar.gz
Algorithm Hash digest
SHA256 ea677c577c5ef4025b66389ffa150e837326025699e85cf7ca7ecfa5b48288ee
MD5 5488f950bc11e10bedf1ad800e3ab08f
BLAKE2b-256 392bc412ba00966de6c4710467aa11cebbd735b5520251b7442a2d9f8feecc85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigergraph_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 67.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c1458f90bfe76a237ea3d1cd165ab194877f581a7d43e859e8503316251befa
MD5 71a591fc63d115217c0e6fb3e8b1a99a
BLAKE2b-256 2fb9c27d01c9c9efe3610b7324a32e812115b6942574513fcc05db51798a086f

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