# Architecture

> StackQL internals - server mode, MCP support, control-plane vs data-plane handling, provider architecture, query execution.

Source: https://stackql.io/ai/architecture

Pages here describe how StackQL is built and how its parts fit together.

## Pages

- [StackQL Architecture Overview](/ai/architecture/stackql-architecture-overview) - entry points, parser, query engine, provider SDK, SQL backend
- [StackQL MCP Architecture](/ai/architecture/stackql-mcp-architecture) - transports, tools, safety modes, and audit logging
