MCP API Reference

Complete reference for the Metapad MCP API — 15 tools for querying and editing models from external AI tools.

delete_nodesMCP

Delete one or more nodes. By default, all connected relationships are also deleted (cascade). Set cascade_relationships to false to fail if the node has any relationships.

update_nodesMCP

Update labels, descriptions, or properties on existing nodes. Use set_label/set_description to update core fields, set_properties for key-value pairs, and remove_properties to clear values. Node IDs accept both UUIDs and auto-IDs (e.g. REQ-42).

add_node_typeMCP

Add a new node type (entity type) to the metamodel. Do this before creating nodes of that type. You can define custom properties with data types.

find_similar_nodesMCP

Find nodes with similar names that might be duplicates. Uses string similarity matching. Useful before creating new nodes to avoid duplication.

create_nodesMCP

Create new node instances. Node type must already exist in the metamodel (use get_metamodel to check, or add_node_type to create). Changes are applied immediately and broadcast to all connected browser users in real-time.

add_allowed_connectionMCP

Define an allowed connection pattern between node types for a relationship type. All three (relationship type, source node type, target node type) must already exist in the metamodel. Use get_metamodel to check existing types.

add_relationship_typeMCP

Add a new relationship type to the metamodel. After creating it, use add_allowed_connection to specify which node types can be connected with it.

get_metamodelMCP

Get the model's schema (metamodel). Returns all node types, relationship types, their properties, allowed connections, and instance counts. Always call this first to understand what the model contains.

get_node_detailsMCP

Get complete details for one or more nodes by their IDs. Returns all properties, description, and metadata. Accepts both UUIDs and auto-IDs (e.g. REQ-42).

delete_relationshipsMCP

Delete one or more relationships by their IDs. Use get_relationships to find the relationship IDs first.

get_statisticsMCP

Get model-wide statistics: node and relationship counts by type, most connected nodes, and property completeness. Useful for a quick model overview.

create_relationshipsMCP

Create relationships between existing nodes. Both source and target must exist. The relationship type must exist in the metamodel and have an allowed connection defined for the given source/target node types.

merge_nodesMCP

Merge duplicate nodes into a single node. All relationships from merged nodes are redirected to the kept node. The merged nodes are then deleted. Use find_similar_nodes to identify candidates.

get_relationshipsMCP

Find relationships (connections) between nodes. Filter by relationship type, source node, target node, or node types. Source and target IDs accept both UUIDs and auto-IDs (e.g. REQ-42).