Provides containerized deployment of the server with Docker, allowing isolated execution with proper credential configuration.
Supports configuration through .env files for credential management, enabling secure storage of Graphistry authentication details.
Hosts the repository for the MCP server at bmorphism/graphistry-mcp, allowing users to clone and install the server from GitHub.
Supports pandas dataframes as an input format for graph visualization, allowing transformation of tabular data into interactive network visualizations.
Supports testing of the server's functionality through pytest, ensuring proper operation of graph visualization features.
Integrates with Ruff for code linting during development, ensuring code quality standards are maintained.
Graphistry MCP Integration
GPU-accelerated graph visualization and analytics for Large Language Models using Graphistry and MCP.
Overview
This project integrates Graphistry's powerful GPU-accelerated graph visualization platform with the Model Control Protocol (MCP), enabling advanced graph analytics capabilities for AI assistants and LLMs. It allows LLMs to visualize and analyze complex network data through a standardized, LLM-friendly interface.
Key features:
GPU-accelerated graph visualization via Graphistry
Advanced pattern discovery and relationship analysis
Network analytics (community detection, centrality, path finding, anomaly detection)
Support for various data formats (Pandas, NetworkX, edge lists)
LLM-friendly API: single
graph_datadict for graph tools
🚨 Important: Graphistry Registration Required
This MCP server requires a free Graphistry account to use visualization features.
Sign up for a free account at hub.graphistry.com
Set your credentials as environment variables or in a
.envfile before starting the server:export GRAPHISTRY_USERNAME=your_username export GRAPHISTRY_PASSWORD=your_password # or create a .env file with: # GRAPHISTRY_USERNAME=your_username # GRAPHISTRY_PASSWORD=your_passwordSee
.env.examplefor a template.
MCP Configuration (.mcp.json)
To use this project with Cursor or other MCP-compatible tools, you need a .mcp.json file in your project root. A template is provided as .mcp.json.example.
Setup:
Edit .mcp.json to:
Set the correct paths for your environment (e.g., project root, Python executable, server script)
Set your Graphistry credentials (or use environment variables/.env)
Choose between HTTP and stdio modes:
graphistry-http: Connects via HTTP (set theurlto match your server's port)graphistry: Connects via stdio (set thecommand,args, andenvas needed)
Note:
.mcp.json.examplecontains both HTTP and stdio configurations. Enable/disable as needed by setting thedisabledfield.See
.env.examplefor environment variable setup.
Installation
Recommended Installation (Python venv + pip)
Or use the setup script:
Usage
Starting the Server
Security & Credential Handling
The server loads credentials from environment variables or
.envusing python-dotenv, so you can safely use a.envfile for local development.The
start-graphistry-mcp.shscript sources.envand is the most robust and secure way to launch the server.
Adding to Cursor (or other LLM tools)
Add the MCP server to your
.cursor/mcp.jsonor equivalent config:{ "graphistry": { "command": "/path/to/your/.venv/bin/python", "args": ["/path/to/your/run_graphistry_mcp.py"], "env": { "GRAPHISTRY_USERNAME": "your_username", "GRAPHISTRY_PASSWORD": "your_password" }, "type": "stdio" } }Make sure the virtual environment is used (either by using the full path to the venv's python, or by activating it before launching).
If you see errors about API version or missing credentials, double-check your environment variables and registration.
Example: Visualizing a Graph (LLM-friendly API)
The main tool, visualize_graph, now accepts a single graph_data dictionary. Example:
Example (hypergraph):
Available MCP Tools
The following MCP tools are available for graph visualization, analysis, and manipulation:
visualize_graph: Visualize a graph or hypergraph using Graphistry's GPU-accelerated renderer.
get_graph_ids: List all stored graph IDs in the current session.
get_graph_info: Get metadata (node/edge counts, title, description) for a stored graph.
apply_layout: Apply a standard layout (force_directed, radial, circle, grid) to a graph.
detect_patterns: Run network analysis (centrality, community detection, path finding, anomaly detection).
encode_point_color: Set node color encoding by column (categorical or continuous).
encode_point_size: Set node size encoding by column (categorical or continuous).
encode_point_icon: Set node icon encoding by column (categorical, with icon mapping or binning).
encode_point_badge: Set node badge encoding by column (categorical, with icon mapping or binning).
apply_ring_categorical_layout: Arrange nodes in rings by a categorical column (e.g., group/type).
apply_group_in_a_box_layout: Arrange nodes in group-in-a-box layout (requires igraph).
apply_modularity_weighted_layout: Arrange nodes by modularity-weighted layout (requires igraph).
apply_ring_continuous_layout: Arrange nodes in rings by a continuous column (e.g., score).
apply_time_ring_layout: Arrange nodes in rings by a datetime column (e.g., created_at).
apply_tree_layout: Arrange nodes in a tree (layered hierarchical) layout.
set_graph_settings: Set advanced visualization settings (point size, edge influence, etc.).
Contributing
PRs and issues welcome! This project is evolving rapidly as we learn more about LLM-driven graph analytics and tool integration.
License
MIT
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.
Tools
GPU-accelerated graph visualization and analytics server for Large Language Models that integrates with Model Control Protocol (MCP), enabling AI assistants to visualize and analyze complex network data.
- Overview
- 🚨 Important: Graphistry Registration Required
- MCP Configuration (.mcp.json)
- Installation
- Usage
- Available MCP Tools
- Contributing
- License
Related Resources
Related MCP Servers
- -security-license-qualityA high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.Last updated -9MIT License
- Asecurity-licenseAqualityAn MCP server that allows AI models to create data visualizations using Vega-Lite syntax by providing tools to save data tables and generate visualizations from them.Last updated -22
- -security-license-qualityA high-performance Model Context Protocol (MCP) server designed for large language models, enabling real-time communication between AI models and applications with support for session management and intelligent tool registration.Last updated -2MIT License
- Asecurity-licenseAqualityThis Model Context Protocol (MCP) server provides powerful visualization tools using QuickChart.io APIs. With this MCP, AI assistants can create charts, diagrams, barcodes, QR codes, word clouds, tables, and more.Last updated -1219