Back to Home
Canner icon

wren-engine

Verified Safe

by Canner

Overview

The Wren MCP Server facilitates AI agent integration by providing a Model Context Protocol interface to interact with the Wren Engine for SQL planning and data access.

Installation

Run Command
uv --directory $(pwd)/mcp-server run app/wren.py

Environment Variables

  • WREN_URL
  • CONNECTION_INFO_FILE
  • MDL_PATH

Security Notes

The server directly accepts SQL queries from AI agents and forwards them to the Wren Engine (or an external Java engine). While the core Wren Engine (Rust implementation) uses AST-based parsing and rewriting, which is generally more robust against SQL injection than string concatenation, the direct exposure of a SQL input surface remains a significant security concern. The overall security largely depends on the absolute robustness of the Wren Engine's SQL parser and rewriter against all forms of malicious SQL constructs. The Python code itself does not contain obvious hardcoded secrets or arbitrary code execution (`eval`) patterns. Database connection information is loaded from a file, relying on file system security. The `query` tool is explicitly marked with `destructiveHint=True` for AI agents, indicating a potential for data modification or deletion.

Similar Servers

Stats

Interest Score57
Security Score6
Cost ClassMedium
Avg Tokens750
Stars529
Forks150
Last Update2026-01-16

Tags

AI Agent IntegrationSemantic LayerModel Context ProtocolSQL PlanningData Governance