Skip to main content
Glama
PuppyGraph MCP Server

PuppyGraph MCP Server

Official
by puppygraph

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PUPPYGRAPH_URLNoBolt endpoint for Cypher.bolt://localhost:7687
PUPPYGRAPH_DATABASENoBolt database name.
PUPPYGRAPH_HTTP_URLNoPuppyGraph HTTP API used by the setup tools. Defaults to the origin of PUPPYGRAPH_SCHEMA_URL.
PUPPYGRAPH_PASSWORDNoBolt password.puppygraph123
PUPPYGRAPH_USERNAMENoBolt username.puppygraph
PUPPYGRAPH_READ_ONLYNoReject write queries when set to true.false
PUPPYGRAPH_SCHEMA_URLNoSchema endpoint.http://localhost:8081/schemajson
PUPPYGRAPH_GREMLIN_URLNoGremlin WebSocket endpoint.ws://localhost:8182/gremlin
PUPPYGRAPH_SCHEMA_PASSWORDNoSchema endpoint password, also used by the setup tools.puppygraph123
PUPPYGRAPH_SCHEMA_USERNAMENoSchema endpoint username.puppygraph
PUPPYGRAPH_GREMLIN_PASSWORDNoGremlin password.puppygraph123
PUPPYGRAPH_GREMLIN_USERNAMENoGremlin username.puppygraph
PUPPYGRAPH_GREMLIN_TRAVERSAL_SOURCENoGremlin traversal source.g
PUPPYGRAPH_MCP_SECRET_ENV_ALLOWLISTNoComma-separated extra environment variable names that password_env / secret_env may read.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

PuppyGraph MCP server. Everything it does is a tool named puppygraph_*; call the tools directly. puppygraph_guide has the full how-to. To query: puppygraph_status, then puppygraph_schema (or puppygraph_search_schema for a large schema), then puppygraph_query. To build a graph: puppygraph_list_catalogs / puppygraph_create_catalog (puppygraph_catalog_spec for a type's exact fields), puppygraph_list_tables and puppygraph_describe_table, puppygraph_profile_column and puppygraph_check_join to choose keys from the data, then puppygraph_add_node / puppygraph_add_edge (or puppygraph_validate_schema + puppygraph_upload_schema for a whole schema), and finally puppygraph_check_edges. Never present a join as verified unless puppygraph_check_join or puppygraph_check_edges checked it; declare each column with the schemaType puppygraph_describe_table reports. PuppyGraph connects to databases from its own server: if PuppyGraph runs in Docker, a database on the Docker host is at host.docker.internal, not localhost.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
puppygraph_query

Execute a graph query (Gremlin or Cypher) against PuppyGraph. Use LIMIT (e.g. 20) unless all rows are needed. Node ids are not properties: id(n) or elementId(n) returns 'Label[value]' (e.g. 'Account[1]', 'OrderLine[1,2]' for a two-column id); n. is null. On an error or warning about an unknown label or property, look the name up with puppygraph_search_schema / puppygraph_get_schema_element and retry

puppygraph_schema

Get schema and structure information about the PuppyGraph database: node and edge labels and their properties. Call it before writing a query.

puppygraph_status

Get connection status and configuration information for PuppyGraph. Call this first to check that PuppyGraph is reachable. This server's features are all tools named puppygraph_* (query a graph; connect a database, warehouse, lake or files and build a graph schema); puppygraph_guide explains which to call in what order.

mcp__puppygraph_query

Execute a graph query (Gremlin or Cypher) against PuppyGraph. Use LIMIT (e.g. 20) unless all rows are needed. Node ids are not properties: id(n) or elementId(n) returns 'Label[value]' (e.g. 'Account[1]', 'OrderLine[1,2]' for a two-column id); n. is null. On an error or warning about an unknown label or property, look the name up with puppygraph_search_schema / puppygraph_get_schema_element and retry

mcp__puppygraph_schema

Get schema and structure information about the PuppyGraph database: node and edge labels and their properties. Call it before writing a query.

mcp__puppygraph_status

Get connection status and configuration information for PuppyGraph. Call this first to check that PuppyGraph is reachable. This server's features are all tools named puppygraph_* (query a graph; connect a database, warehouse, lake or files and build a graph schema); puppygraph_guide explains which to call in what order.

puppygraph_guide

How to use this PuppyGraph MCP server: everything it does is a puppygraph_* tool. Returns the steps to query a graph, and to build one from a database, warehouse, lake or files (catalog → tables → keys → schema → check), with the rules for correct keys, types and edges. Call it first if you haven't used these tools before.

puppygraph_catalog_spec

Describe the catalog types PuppyGraph supports (omit type), or one type's connection fields: exact names, defaults, allowed values, which fields apply when (e.g. icebergMetastoreType=rest shows restUri and restWarehouse), and its docs link. Use the names in puppygraph_create_catalog's options. Read-only: it connects to nothing.

puppygraph_list_catalogs

List the data source catalogs registered in PuppyGraph (name, type, connection; credentials masked). A graph schema reads its tables through these catalogs.

puppygraph_create_catalog

Register a data source (database, warehouse or lake) as a PuppyGraph catalog, so a graph schema can map its tables. PuppyGraph connects to the source to check the settings before saving. Credentials are never returned or logged. Next: puppygraph_list_tables, then write a schema.

puppygraph_test_catalog

Check that PuppyGraph can connect to a registered catalog and read data through it.

puppygraph_list_tables

List the databases/schemas of a catalog, or the tables in one of them. Use the names exactly as returned in the graph schema (externalDataSource.schema and .table).

puppygraph_describe_table

List the columns of a table in a catalog: name, source type, and schemaType. Declare each column in the graph schema with its schemaType exactly as given (e.g. LONG, DECIMAL(12,2), ARRAY): PuppyGraph rejects any other type. Columns with schemaType UNKNOWN can't be mapped; leave them out.

puppygraph_sample_table

Return a few real rows of a table (default 10, at most 100), to tell id-shaped columns from free text and spot enums before mapping the table. The rows go into the conversation, so ask for only the columns you need.

puppygraph_profile_column

Profile one column from its data: total, null and distinct counts, cardinality_class (unique, high, medium, low or binary) and looks_like hints (pk_candidate, fk_candidate, enum, measure, free_text, timestamp, json), plus up to 20 sample values and min/max unless the server returns counts only. A node id should be a pk_candidate: unique and never null. Use this to decide which column is a table's id, which ones reference other tables, and which are attributes. It scans the whole column, so it can take minutes on large tables.

puppygraph_table_row_count

Count the rows of a table. Helps tell entity tables (nodes) from event and link tables (often edges), and judge how long profiling will take.

puppygraph_check_join

Check from the data whether a column references another table: samples distinct values of from.column and counts how many exist in to.column. Without to.column, tries the type-compatible columns of to.table and ranks them. Returns candidates with hit_rate (share of sampled values found), from_keys and to_keys (distinct counts), and up to 5 values that were not found (unless the server returns counts only). Check every edge this way before putting it in a schema; never present a join you did not check as verified. A hit_rate near 1.0 is a foreign key; below about 0.95 it is a soft reference, so tell the user the evidence. Independent checks can run in parallel. It can take minutes on large tables.

puppygraph_schema_template

Get an annotated example of a PuppyGraph 1.x graph schema (nodes and edges mapped from tables), to adapt before validating and uploading.

puppygraph_validate_schema

Dry-run a graph schema without changing anything: checks its structure, that catalogs, tables and mapped columns exist, and that edges point at defined nodes. Converts 0.x schemas to 1.x. Run this before puppygraph_upload_schema.

puppygraph_upload_schema

Install a graph schema in PuppyGraph so it can be queried. Validates it first and refuses on problems; PuppyGraph also checks every mapped table and column before changing anything. If a schema is already installed, it is only replaced when replace is true. On failure the installed schema stays as it was.

puppygraph_search_schema

Search the installed graph schema for node and edge types by keyword (case-insensitive, matched against labels, relationship labels, endpoint labels and attribute names), without loading the whole schema. Each edge comes with the pattern to use in Cypher.

puppygraph_get_schema_element

Get one node or edge of the installed graph schema: ids, attributes (with types), source table and, for edges, endpoints, keys and the relationship label to use in Cypher. Accepts a node label, an edge label, or a Cypher relationship label. Use it before filtering on a property you haven't seen.

puppygraph_check_edges

Check the installed graph against its data: for each edge type, how many edge rows exist and how many of them reach an existing source node and an existing target node, plus a row count per node type. A wrong join key, a swapped direction or a key of the wrong type shows up as rows that reach no node. Plain count queries can't show this: they count edge rows without looking up the nodes. Run it after every upload. It works on every PuppyGraph 1.x, and needs no data-probing permission.

puppygraph_add_node

Add one node type to the installed graph schema (creates the schema if there is none). Add all nodes first, then the edges between them. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_update_node

Replace one node type of the installed schema with a new definition (same label). Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_remove_node

Remove one node type from the installed schema. Refused while an edge still uses it: remove those edges first. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_add_edge

Add one edge type to the installed schema; both endpoint nodes must exist. Only add an edge whose join you checked: with puppygraph_check_join where the server supports it (hit_rate near 1.0; below about 0.95 it's a soft reference, so tell the user), otherwise say it is unverified, and run puppygraph_check_edges after adding it. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_update_edge

Replace one edge type of the installed schema with a new definition (same label). Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_remove_edge

Remove one edge type from the installed schema. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_add_node_attribute

Add one attribute (a source column) to a node type of the installed schema. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

puppygraph_add_edge_attribute

Add one attribute (a source column) to an edge type of the installed schema. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
guideWhich tools to call, in what order, to query a graph or build one from a database.
schemaThe current graph schema: node and edge labels and their properties (same as the puppygraph_schema tool).