
garphield
com.garphield/garphield
Build, style, lay out, share and export network graphs from tables and graph files.
Documentation
![]()
Garphield MCP server
Garphield is a workbench for network graphs. Its MCP server lets Claude, ChatGPT, Cursor and other AI clients build a graph from your data, bind colour, size and link width to it, lay it out, check how readable the layout is, and give you a link that opens the graph in Garphield.

This repository has the server's listing, licence and issue tracker. The source code is private. Documentation lives at garphield.com/docs/agents.
Connect
Hosted (no install, no account): add a custom connector with this URL.
https://mcp.garphield.com/mcp
- Claude: Settings, then Connectors, then Add custom connector.
- ChatGPT: Settings, then Apps, then Add custom MCP server.
Local (graphs stay on your disk): run the npm package
garphield-mcp, which needs
Node.js 22.19 or later.
claude mcp add garphield -- npx -y garphield-mcp
Setup for Claude Desktop, Codex, Cursor and others is in the agents guide. To have your AI assistant set it up, give it SETUP.md.
Tools
| Tool | What it does |
|---|---|
garphield_create | Builds a graph from node and link tables (CSV), node-link JSON, Cytoscape JSON (.cyjs), GEXF, GraphML, GML, edge lists, Matrix Market or graph6, or from a GitHub, Google Sheets or Wikipedia table URL |
garphield_inspect | Lists the graph's fields, the channels each one can drive, and a readability grade |
garphield_style | Binds colour, size, link width, shape and other channels to fields or to measures such as degree, PageRank and Louvain communities |
garphield_focus | Highlights a set of nodes or a path, and fades or hides the rest |
garphield_layout | Lays the graph out and grades the result |
garphield_validate | Checks a document the way the workbench loads it |
garphield_share | Returns a link, an embed link and an iframe snippet; in Claude and ChatGPT the graph also appears inline |
garphield_export | Exports .gph, node-link JSON, GEXF, GraphML, GML or PNG |
Example prompts
Make a network graph of who emailed whom, colour people by team, size them by how many people they talk to, and give me a link.
Map these airline routes as a network. Make link width the weekly passengers, size airports by total passengers, and colour them by region.

These are the import dependencies between packages in our monorepo. Find the clusters, colour packages by cluster, and tell me how readable the layout is.

Data and privacy
On the hosted server, graphs are stored under an unguessable id and expire 30
days after their last change. Anyone with a graph's link can open that graph. Tool
arguments and document contents are never logged. The local package keeps
graphs as .gph files on your disk. Details are in the
privacy policy.
Issues
Report bugs and ask for features in Issues. For anything private, email contact@garphield.com.
Licence
Free to install and use, including commercially, under the end-user terms in LICENSE. The source is not published.
garphield-mcpnpm install garphield-mcp