Skip to content

Write Cypher Queries Blocked as "Unsafe Query" – Is Write Support Available? #3

Description

@williamlee2112

Hi there,

I’m using the latest version of age-mcp-server (downloaded from homebrew-age-mcp-server and mcp.so), and have it configured to connect to a non-Azure PostgreSQL instance with the AGE extension enabled.

I can successfully connect, list graphs, and run read Cypher queries via the MCP server. However, whenever I attempt to run write Cypher queries (such as CREATE nodes or edges), I receive an error:

Error: Unsafe query
I have confirmed that:

My database and user have full privileges (I can create graphs and nodes via pgAdmin and SQL).
The AGE extension is installed and initialized.
The MCP config does not have any read-only or safe-mode flags.
Questions:

Is write Cypher query support currently available in age-mcp-server? If so, how can I enable it?
Is there a way to disable the “unsafe query” restriction?
Are there any backend restrictions (e.g., Azure-only), or should this work on any PostgreSQL+AGE setup?
If write support is not yet available, is there an ETA or roadmap for this feature?
Thank you for your help!

Let me know if you want to customize it further or if you’re ready to submit it!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions