Build and scale app backends with coding agents
Imagine a coding agent like Cursor or Claude Code querying a database, drawing traffic charts, and handling deployments. Appwrite is an open-source platform designed for developers and AI agents to build and scale apps together. It provides essential backend functions in one place, including authentication, database, storage, functions, messaging, hosting, real-time communication, and firewall.
MCP server for agents
Appwrite includes MCP (Model Context Protocol) by default, allowing coding agents to perform tasks directly on live projects. Connecting tools like Cursor, Claude Code, or Codex to a hosted MCP server authenticates them via OAuth, eliminating the need to create or manage API keys separately. In self-hosted environments, you can use a local MCP server. Installing language-specific agent skills helps the model generate correct SDK calls.
Included backend services
Core modules required for app development are integrated, maintaining a consistent structure from prototype to production.
- Authentication Securely authenticate users via email, SMS, OAuth, anonymous sessions, and magic URLs.
- Database Model and query data using Appwrite native database or managed PostgreSQL and MySQL.
- Storage Provides file storage with compression, encryption, image transformation, and access control.
- Functions Deploy serverless functions with secure isolated runtimes and event-based execution.
- Sites Deploy static, SSR, and CSR frontends from Git with instant previews.
Installation and self-hosting
Appwrite is designed with self-hosting in mind and can be installed on any operating system capable of running the Docker CLI. Running a single command in the terminal launches an installation wizard that exposes only to localhost on port 20080 and displays a one-time installation secret in standard output. Opening this URL or sending the x-appwrite-installer-secret header completes the installation. For remote hosts, do not expose the port to all interfaces; instead, connect to 127.0.0.1:20080 via an SSH tunnel. If a Docker API version mismatch error occurs, set the DOCKER_API_VERSION environment variable or upgrade the host Docker.
Architecture and scalability
Appwrite uses a hybrid monolithic-microservices architecture for easy scaling and separation of concerns. It supports multiple APIs, including REST, WebSocket, and GraphQL, allowing you to leverage existing knowledge and protocols. The API layer utilizes in-memory caching and delegates heavy tasks to background workers to maintain fast responses. It handles load through a message queue, enabling precise control over compute capacity and costs.
Pre-implementation considerations
Appwrite is provided under the BSD 3-Clause License and can be used as either a cloud-managed service or self-hosted. If choosing self-hosting, an environment with Docker installed is mandatory, and the secrets and port settings generated during installation must be managed carefully from a security perspective. When upgrading from an existing version, you must use migration tools, and it is recommended to verify Docker API version compatibility in advance. If you want to integrate with AI agents, check for MCP client support, and if specific language SDKs are needed, review the support list.