/memgraph:memgraph-mgconsole-clifrom memgraph
Guides connecting to Memgraph via mgconsole CLI, running Cypher queries interactively or non-interactively, and configuring output format, SSL, history, and verbose execution info.
Ships in memgraph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use mgconsole to connect to Memgraph and execute Cypher queries from the command line.
docker run -it memgraph/mgconsole:latest
docker run -it memgraph/mgconsole:latest --host host.docker.internal
docker run -it memgraph/mgconsole:latest --host <HOST> --port 7687
Install from Memgraph downloads, then run:
mgconsole --host 127.0.0.1 --port 7687
After launch, you should see a prompt similar to:
mgconsole X.X
Connected to 'memgraph://127.0.0.1:7687'
Type :help for shell usage
Quit the shell by typing Ctrl-D(eof) or :quit
memgraph>
Run Cypher queries at the memgraph> prompt:
MATCH (n) RETURN n LIMIT 10;
Tips:
TAB for autocomplete.:help to list shell commands.:quit or Ctrl-D.Run a single query with stdin:
echo "MATCH (n:Person) RETURN n;" | docker run -i memgraph/mgconsole:latest
Save results to a file:
echo "MATCH (n:Person) RETURN n;" | docker run -i memgraph/mgconsole:latest > results.txt
Use flags to configure connection and output:
--host or -host: Memgraph host (default 127.0.0.1)--port or -port: Memgraph port (default 7687)--username / --password: Credentials (empty by default)--output_format: tabular (default), csv, or cypherl (cypherl only works with DUMP DATABASE)--fit_to_screen: Fit output to terminal width--history: Directory for history (default ~/.memgraph)--no_history: Disable history persistence--term_colors: Enable terminal colors--use_ssl: Enable SSL--verbose_execution_info: Show cost, parsing, planning, execution times (interactive mode only)Enable verbose execution info to get a breakdown (interactive mode only):
mgconsole --verbose_execution_info
This adds:
Note: These details are only displayed in interactive mode, not when piping queries via stdin.
-host (string): Server address. Default 127.0.0.1.-port (int): Server port. Default 7687.-username (string): Database username. Default empty.-password (string): Database password. Default empty.-use_ssl (bool): Use SSL. Default false.-output_format (string): tabular (default), csv, or cypherl. Note: cypherl only works with DUMP DATABASE.-fit_to_screen (bool): Fit output width to terminal width. Default false.-term_colors (bool): Enable terminal colors. Default false.-history (string): Directory for history. Default ~/.memgraph.-no_history (bool): Disable history persistence. Default false.-verbose_execution_info (bool): Show cost, parsing, planning, and execution times. Default false.-csv_delimiter (string): Field separator. Default ",".-csv_doublequote (bool): Use double-quoting for quotes inside fields. Default true.-csv_escapechar (string): Escape character when -csv_doublequote is false.-import_mode (string): serial (default), batched-parallel, or parser. Controls how piped queries are executed.-batch_size (int): Batch size for batched-parallel mode. Default 1000.-workers_number (int): Thread count for batched-parallel mode. Default 32.-help or -helpful: Show all flags.-helpshort: Show main flags only.-version: Show version and build info.-flagfile: Load flags from a file.-fromenv / -tryfromenv: Set flags from environment variables.echo "MATCH (n) RETURN n;" | docker run -i memgraph/mgconsole:latest
docker run -it memgraph/mgconsole:latest --host host.docker.internal
host.docker.internal--output_format tabularWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memgraph@memgraph is listed by memgraph/marketplace — review the source before installing
npx claudepluginhub memgraph/marketplace --plugin memgraph14 skills in this plugin
/memgraph-brand-uiGenerate apps, demos, dashboards, diagrams, landing pages, and any visual output that looks like it belongs in the Memgraph product family. Use whenever producing UI, visual artifacts (Mermaid, SVGs, charts), Lab-style admin tools, internal dashboards, feature splash pages, or embeddable widgets for Memgraph engineers./memgraph-cpp-query-modulesDevelop custom query modules in C++ for Memgraph graph database. Use when creating high-performance graph algorithms, procedures (ProcedureType::Read/Write), or functions using the mgp.hpp C++ API. Covers compilation, memory management, graph traversal, and module deployment./memgraph-cypher-syntaxWrite Cypher queries for Memgraph, including Memgraph-specific extensions like deep path traversals (BFS, DFS, WSP, ASP, KSP with filter/weight lambdas), text and vector search, parallel execution, and CALL subqueries. Use when the user asks to write, fix, or optimize a Cypher query for Memgraph, or asks about Cypher syntax differences between Memgraph and Neo4j.Other plugins' skills for the same job