Skip to main content

gephi-ai

MCP server that bridges any Model Context Protocol client to a running Gephi Desktop instance, exposing 120 tools for graph construction, statistics, community detection, layout, styling, filtering, and publication-ready export.

It translates MCP tool calls into HTTP requests against the Gephi AI plugin's local API (http://127.0.0.1:8080). Each tool has a typed signature, so clients receive a precise per-field JSON schema rather than an opaque blob.

This is the MCP server component of gephi-ai; see the top-level repository for the Gephi plugin, the Claude Code plugin, and full docs.

Install

No install needed with uv — point your MCP client at:

uvx gephi-ai

uvx fetches gephi-ai from PyPI on first run and caches it. For a persistent gephi-ai command on your PATH instead, use pipx install gephi-ai (or pipx install . from this directory). Avoid plain pip install -e . inside a virtual environment: the command is then only visible on that venv's PATH, and MCP clients launched outside your shell won't find it.

Use

The Gephi AI plugin must be installed and Gephi Desktop running first. Then point any MCP client at the gephi-ai command, e.g. for Claude Desktop:

{ "mcpServers": { "gephi-ai": { "command": "uvx", "args": ["gephi-ai"] } } }

Configuration

Env var Default Purpose
GEPHI_API_URL http://127.0.0.1:8080 Gephi plugin HTTP API base URL
GEPHI_REQUEST_TIMEOUT 60.0 Per-request timeout (seconds)
GEPHI_DUPLICATE_GRACE 30 Seconds to keep checking for a workspace copy after a duplicate timed out, so a copy Gephi makes late is still removed

Graph-changing tools run one at a time within one server process, so parallel tool calls from a host cannot interleave their changes. gephi_profile_graph waits in that same queue, because it writes statistic columns, and so do the exports and gephi_visual_qa, so an image never comes from a workspace copy. Read-only tools do not wait for graph changes, and gephi_session_receipt and gephi_claim_record behave like read-only tools. Read-only tools wait until a what-if finishes, then read the original graph; this includes any time the what-if spends on slow metrics or waiting for a late copy. gephi_compare_workspaces also holds back reads while it runs, because it switches between the two workspaces. A what-if or a compare waits for reads already in progress before it starts. After a workspace duplicate times out, the server may keep checking for the late copy for up to GEPHI_DUPLICATE_GRACE seconds before it answers.

Development

pip install -e ".[dev]"
ruff check .
mypy ./*.py gephi_mcp_viewer
python -m pytest -q --cov   # fails below the coverage floor in pyproject.toml

License

Apache-2.0 — see the repository LICENSE.

Metadata

Release files for gephi-ai 1.21.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gephi-ai 1.21.2
File Size Uploaded Provenance Actions
gephi_ai-1.21.2.tar.gz 453.4 kB Without provenance Details for gephi_ai-1.21.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gephi-ai 1.21.2
File Interpreter ABI Platform Actions
gephi_ai-1.21.2-py3-none-any.whl Python 3 none any Details for gephi_ai-1.21.2-py3-none-any.whl

Total release size: 646.4 kB

Release files / gephi_ai-1.21.2.tar.gz

Download URL gephi_ai-1.21.2.tar.gz
Size 453.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2e56845a12c020e2d826e7031683c8240a933ba97fa1fdae3d9652b772cad16e
BLAKE2b-256 checksum
How to use checksums
ba56f367e719a935121e826d76073c05789ba5bb1f57429db81a6cce2b7aa7f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / gephi_ai-1.21.2-py3-none-any.whl

Download URL gephi_ai-1.21.2-py3-none-any.whl
Size 193.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
118187f1af0222b23801d263311f20c811ae8e0e8a7562aa64cbf4978e940da2
BLAKE2b-256 checksum
How to use checksums
e12620f026bd5895fcbba1c0715e6d1b09caf4cc5c91f8c9ff5bc6cd21555cbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for gephi-ai 1.21.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page