mcp-agensgraph-data-modeling

v0.3.1
mcp-agensgraph-data-modeling Checked 2 hours ago Published 2 months ago

AgensGraph data-modeling MCP server (validate models, generate ingest/constraint Cypher, Arrows/Mermaid).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_node

Validate a single node. Returns True if the node is valid, otherwise raises a ValueError. If return_validated is True, returns the validated node.

ParameterTypeDescription
node *objectA AgensGraph Node.
return_validatedboolean

validate_relationship

Validate a single relationship. Returns True if the relationship is valid, otherwise raises a ValueError. If return_validated is True, returns the validated relationship.

ParameterTypeDescription
relationship *objectA AgensGraph Relationship.
return_validatedboolean

validate_data_model

Validate the entire data model. Returns True if the data model is valid, otherwise raises a ValueError. If return_validated is True, returns the validated data model.

ParameterTypeDescription
data_model *objectA AgensGraph Graph Data Model.
return_validatedboolean

load_from_arrows_json

Load a data model from the Arrows web application format. Returns a data model as a JSON string.

ParameterTypeDescription
arrows_data_model_dict *object

export_to_arrows_json

Export the data model to the Arrows web application format. Returns a JSON string. This should be presented to the user as an artifact if possible.

ParameterTypeDescription
data_model *objectA AgensGraph Graph Data Model.

get_mermaid_config_str

Get the Mermaid configuration string for the data model. This may be visualized in Claude Desktop and other applications with Mermaid support.

ParameterTypeDescription
data_model *objectA AgensGraph Graph Data Model.

get_node_cypher_ingest_query

Get the Cypher query to ingest a list of Node records into a AgensGraph database. This should be used to ingest data into a AgensGraph database. This is a parameterized Cypher query. The list of records is bound to the parameter named `records`, and the placeholder in the query is written `%(records)s` -- that is the form the database driver binds. `$records` is not rewritten by anything and reaches the server as written, where it is a syntax error.

ParameterTypeDescription
node *objectThe node to get the Cypher query for.

get_relationship_cypher_ingest_query

Get the Cypher query to ingest a list of Relationship records into a AgensGraph database. This should be used to ingest data into a AgensGraph database. This is a parameterized Cypher query. The list of records is bound to the parameter named `records`, and the placeholder in the query is written `%(records)s` -- that is the form the database driver binds. `$records` is not rewritten by anything and reaches the server as written, where it is a syntax error. The records must contain the Relationship properties, if any, as well as the sourceId and targetId properties of the start and end nodes r…

ParameterTypeDescription
data_model *objectThe data model snippet that contains the relationship, start node and end node.
relationship_end_node_label *stringThe label of the relationship end node.
relationship_start_node_label *stringThe label of the relationship start node.
relationship_type *stringThe type of the relationship to get the Cypher query for.

get_constraints_cypher_queries

Get the statements that declare the data model's labels and make each node key unique. Run them one at a time, in the order given: each item is one statement, and none of them is to be split on a semicolon, because a label may hold one. They can all be run again. A relationship gets its label declared but no uniqueness asserted, since a relationship key identifies one relationship between one pair of endpoints rather than one across the whole label.

ParameterTypeDescription
data_model *objectA AgensGraph Graph Data Model.

get_example_data_model

Get an example graph data model from the available templates. Returns a DataModel object and the Mermaid visualization configuration for the example graph data model.

ParameterTypeDescription
example_name *stringName of the example to load: 'patient_journey', 'supply_chain', 'software_dependency', 'oil_gas_monitoring', 'customer_360', 'fraud_aml', or 'health_insurance_fraud'

list_example_data_models

List all available example data models with descriptions. Returns a dictionary with example names and their descriptions.