example_mcp_config.json•7.57 kB
{
"mcpServers": {
"neo4j-knowledge-graph": {
"command": "/home/merlin/projects/worthafen/dist/neo4j_mcp_server",
"args": [],
"description": "Local Neo4j-based knowledge graph server",
"stdio": true,
"workingDirectory": "/home/merlin/projects/worthafen",
"capabilities": {
"tools": [
{
"name": "create_entities",
"description": "Create multiple new entities in the knowledge graph",
"parameters": {
"type": "object",
"properties": {
"entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of entity (e.g., Person, Organization)"
},
"properties": {
"type": "object",
"description": "Properties of the entity (e.g., name, age, occupation)"
}
},
"required": [
"type",
"properties"
]
}
},
"context": {
"type": "object",
"description": "Additional context for entity creation"
}
},
"required": [
"entities",
"context"
]
}
},
{
"name": "search_entities",
"description": "Search for entities in the knowledge graph with powerful text matching and filtering. Can be used to search by text, list entities by type, find entities with specific properties, or any combination of these filters.",
"parameters": {
"type": "object",
"properties": {
"search_term": {
"type": "string",
"description": "Optional text to search for in entity properties. If not provided, returns entities based on other filters."
},
"entity_type": {
"type": "string",
"description": "Optional entity type to filter by (e.g., Person, Organization). If provided alone, returns all entities of that type."
},
"properties": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of property names to filter by. If search_term is provided, searches these properties for the term. If search_term is not provided, returns entities that have any of these properties defined."
},
"include_relationships": {
"type": "boolean",
"description": "Whether to include connected entities and relationships in results",
"default": false
},
"fuzzy_match": {
"type": "boolean",
"description": "Whether to use case-insensitive partial matching when search_term is provided",
"default": true
}
}
}
},
{
"name": "create_relations",
"description": "Create multiple new relations between entities",
"parameters": {
"type": "object",
"properties": {
"relations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of relation (e.g., KNOWS, WORKS_FOR)"
},
"from": {
"type": "string",
"description": "ID of the source entity"
},
"to": {
"type": "string",
"description": "ID of the target entity"
}
},
"required": [
"type",
"from",
"to"
]
}
}
},
"required": [
"relations"
]
}
},
{
"name": "introspect_schema",
"description": "Introspect the Neo4j database schema to get information about node labels and relationship types",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "update_entities",
"description": "Update existing entities in the knowledge graph",
"parameters": {
"type": "object",
"properties": {
"updates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the entity to update"
},
"properties": {
"type": "object",
"description": "Properties to update or add"
},
"remove_properties": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of property names to remove"
},
"add_labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of labels to add to the entity"
},
"remove_labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of labels to remove from the entity"
}
},
"required": [
"id"
]
}
}
},
"required": [
"updates"
]
}
},
{
"name": "delete_entities",
"description": "Delete entities from the knowledge graph",
"parameters": {
"type": "object",
"properties": {
"entity_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of entity IDs to delete"
},
"cascade": {
"type": "boolean",
"description": "Whether to cascade delete relationships",
"default": false
}
},
"required": [
"entity_ids"
]
}
}
]
}
}
}
}