Elasticsearch Knowledge Graph for MCP

by j3k0

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ES_NODENoElasticsearch node URLhttp://localhost:9200
ES_PASSWORDNoElasticsearch password (if authentication is enabled)
ES_USERNAMENoElasticsearch username (if authentication is enabled)
KG_DEFAULT_ZONENoDefault memory zone to usedefault
KG_INDEX_PREFIXNoPrefix for Elasticsearch indicesknowledge-graph
MEMORY_FILE_PATHNoPath to memory JSON file (for import/export)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
create_entities

Create entities in knowledge graph (memory)

update_entities

Update entities in knowledge graph (memory)

delete_entities

Delete entities from knowledge graph (memory)

create_relations

Create relationships between entities in knowledge graph (memory)

delete_relations

Delete relationships from knowledge graph (memory)

search_nodes

Search entities using ElasticSearch query syntax. Supports boolean operators (AND, OR, NOT), fuzzy matching (), phrases ("term"), proximity ("terms"N), wildcards (*, ?), and boosting (^N). Examples: 'meeting AND notes', 'Jon', '"project plan"2'. All searches respect zone isolation.

open_nodes

Get details about specific entities in knowledge graph (memory) and their relations

add_observations

Add observations to an existing entity in knowledge graph (memory)

mark_important

Mark entity as important in knowledge graph (memory) by boosting its relevance score

get_recent

Get recently accessed entities from knowledge graph (memory) and their relations

list_zones

List all available memory zones with metadata.

create_zone

Create a new memory zone with optional description.

delete_zone

Delete a memory zone and all its entities/relations.

copy_entities

Copy entities between zones with optional relation handling.

move_entities

Move entities between zones (copy + delete from source).

merge_zones

Merge multiple zones with conflict resolution options.

zone_stats

Get statistics for entities and relationships in a zone.