GateRook is a local desktop application and MCP gateway designed to manage AI access to infrastructure resources, including databases, logs, servers, and APIs. The project is open-source under the Apache 2.0 license, with source code available on GitHub.

The system architecture consists of a desktop interface built on Electron and Angular, powered by a Java core. Configuration and call logs are stored locally in SQLite. The gateway acts as an intermediary, validating AI requests against predefined policies before execution.

GateRook supports various connectors, including PostgreSQL, MySQL, Oracle Database, SQL Server, MongoDB, Redis, Elasticsearch, OpenSearch, and SSH. It also allows for integration with HTTP/OpenAPI and external MCP servers to expand functionality.

The application enforces security by requiring explicit confirmation for operations classified as data mutations. When an AI agent attempts a write operation, the system generates an approval card with a timeout, preventing the agent from executing unauthorized or ambiguous SQL queries.

The gateway prevents common operational errors, such as executing queries without a selected database context. By separating the AI client from the execution layer, GateRook ensures that credentials remain secure and that access policies are consistently applied across different AI tools.