MCP
The @nesso-how/mcp package is a Model Context Protocol server that gives AI clients access to Nesso documentation, the full relation-type vocabulary, and tools to build and validate graph documents. Once connected, models can answer questions about how Nesso works, produce importable graph JSON, and check files before writing them back to disk.
Claude Desktop
Section titled “Claude Desktop”Open claude_desktop_config.json. On macOS it lives at ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows at %APPDATA%\Claude\claude_desktop_config.json.
Add a nesso entry under mcpServers:
{ "mcpServers": { "nesso": { "command": "npx", "args": ["-y", "@nesso-how/mcp"] } }}Save the file and restart Claude Desktop. The Nesso tools will be available to the model automatically.
Cursor
Section titled “Cursor”Open Settings -> MCP and add a new server with command npx and args ["-y", "@nesso-how/mcp"].
Other MCP clients
Section titled “Other MCP clients”Any client that speaks the stdio MCP transport works. Run npx -y @nesso-how/mcp as the server command. No other configuration is required.
What it can do
Section titled “What it can do”Once connected, you can ask your AI client things like:
- “What relation types does Nesso support?” (uses
get_relation_types) - “Show me the Nesso getting started guide” (uses
get_nesso_docs) - “Build a graph about photosynthesis with causes and enables relations” (uses
build_graph) - “Validate this graph JSON before I save it” (uses
validate_graph)
The MCP server is stateless and does not read or write files. Your client uses its own filesystem tools to read .json graph files, passes the contents inline to validate_graph or build_graph, and writes the result back. Nesso picks up external edits through its normal workspace sync.
Agent workflow for graph files
Section titled “Agent workflow for graph files”A typical end-to-end flow when the client has filesystem access:
- Read the target graph
.jsonfrom the project folder (client filesystem tool). - Validate with
validate_graph. Fix anyerrorsbefore saving. Reviewwarnings(e.g. missingvocabularyor relationtype). - Build or extend with
build_graphwhen creating a new graph from structured concepts and relations: the tool assigns ids, vocabulary metadata, valid relation types, and layout positions. - Re-validate the output with
validate_graphif the client edited the JSON by hand. - Write the JSON back to disk (client filesystem tool). Open or sync the graph in Nesso.
Example prompt:
Read
graphs/biology.jsonin this workspace, validate it with Nesso MCP, then usebuild_graphto add concepts “Chloroplast” and “Glucose” linked byproduces, merge the result, re-validate, and write the file back.
See MCP tools for the full tool reference.