Skip to main content
Glama
Garphield MCP server

Garphield MCP server

README.md
<p align="center"><img src="images/icon.png" width="96" height="96" alt="Garphield"></p>

# Garphield MCP server

[Garphield](https://garphield.com) 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.

![An email network coloured by team, drawn inline in Claude](images/email-network.png)

This repository has the server's listing, licence and issue tracker. The
source code is private. Documentation lives at
**[garphield.com/docs/agents](https://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`](https://www.npmjs.com/package/garphield-mcp), which needs
Node.js 22.19 or later.

```sh
claude mcp add garphield -- npx -y garphield-mcp
```

Setup for Claude Desktop, Codex, Cursor and others is in the
[agents guide](https://garphield.com/docs/agents/). To have your AI assistant
set it up, give it [SETUP.md](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.

![Airline routes with link width by passengers and airports coloured by region](images/airline-routes.png)

> 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.

![Package dependencies coloured by cluster](images/monorepo-dependencies.png)

## 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](https://garphield.com/docs/privacy/).

## Issues

Report bugs and ask for features in
[Issues](https://github.com/ammil-industries/garphield-mcp/issues). For
anything private, email contact@garphield.com.

## Licence

Free to install and use, including commercially, under the end-user terms in
[LICENSE](LICENSE). The source is not published.