# Appwrite — Open-Source Backend for AI Apps > Complete cloud backend with auth, database, storage, functions, and messaging in one platform. Self-hostable. 55K+ GitHub stars. ## Install Merge the JSON below into your `.mcp.json`: # Appwrite — Open-Source Backend for AI Apps ## Quick Use ```bash docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)/appwrite:/usr/src/code/appwrite:rw" \ --entrypoint="install" \ appwrite/appwrite:latest ``` Open `http://localhost/console` — admin console is ready. Or use the CLI: ```bash npm install -g appwrite-cli appwrite login appwrite init project ``` SDK usage: ```javascript import { Client, Databases, Account } from 'appwrite'; const client = new Client() .setEndpoint('http://localhost/v1') .setProject('my-project'); const account = new Account(client); await account.createEmailPasswordSession('user@example.com', 'password'); const db = new Databases(client); const doc = await db.createDocument('main', 'chats', 'unique()', { prompt: 'What is RAG?', response: 'Retrieval Augmented Generation...', model: 'gpt-4o', tokens: 342 }); ``` --- ## Intro Appwrite is an open-source backend platform with 55,500+ GitHub stars that provides authentication, databases, file storage, serverless functions, messaging, and real-time subscriptions in a single self-hostable package. With SDKs for 12+ languages and frameworks, it's the fastest way to build a production backend for AI applications — store conversations, manage user accounts, handle file uploads, run background functions, and push notifications. Backed by a large community with 800+ contributors, Appwrite is the most complete open-source alternative to Firebase. Works with: JavaScript, Python, Flutter, React, Vue, Swift, Kotlin, PHP, Ruby, Deno, any REST client. Best for teams building AI-powered apps that need a complete backend without managing separate services. Setup time: under 5 minutes. --- ## Appwrite Platform Services ### Complete Backend in One Platform | Service | Description | |---------|-------------| | **Auth** | Email/password, OAuth (30+ providers), JWT, MFA, teams | | **Databases** | Document database with collections, queries, permissions | | **Storage** | File upload, image transforms, CDN, encryption at rest | | **Functions** | Serverless functions in any language (Node, Python, Dart, etc.) | | **Messaging** | Email, SMS, push notifications via providers | | **Realtime** | WebSocket subscriptions for live updates | ### AI App Use Cases | Use Case | Appwrite Services | |----------|-------------------| | **AI Chat App** | Auth + Database (conversations) + Realtime (streaming) | | **RAG Platform** | Storage (documents) + Functions (embedding generation) + Database (vectors) | | **Agent Dashboard** | Auth + Database (agent configs/logs) + Functions (agent execution) | | **LLM API Gateway** | Functions (proxy + rate limit) + Database (usage tracking) | ### Serverless Functions for AI ```javascript // functions/generate/src/index.js export default async ({ req, res }) => { const { prompt } = JSON.parse(req.body); const response = await fetch('https://api.openai.com/v1/chat/completions', { method: 'POST', headers: { 'Authorization': `Bearer ${process.env.OPENAI_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ model: 'gpt-4o', messages: [{ role: 'user', content: prompt }] }) }); const data = await response.json(); return res.json({ answer: data.choices[0].message.content }); }; ``` ### SDKs (12+ Languages) ```bash # Web/Node.js npm install appwrite # Python pip install appwrite # Flutter/Dart flutter pub add appwrite # React Native, Swift, Kotlin, PHP, Ruby, Deno... ``` ### Self-Hosting Appwrite runs anywhere Docker runs: - Single server deployment - Kubernetes (Helm charts available) - Cloud VMs (AWS, GCP, Azure, DigitalOcean) --- ## FAQ **Q: What is Appwrite?** A: Appwrite is an open-source backend platform with 55,500+ GitHub stars providing auth, databases, storage, functions, messaging, and real-time in one self-hostable package. SDKs for 12+ languages. **Q: How is Appwrite different from Supabase or PocketBase?** A: Supabase is PostgreSQL-centric with SQL. PocketBase is a single binary with SQLite. Appwrite is a full platform with more services (messaging, teams, MFA) and SDKs for more languages. Appwrite is best for multi-platform apps (web + mobile + server). **Q: Is Appwrite free?** A: Yes, open-source under BSD-3-Clause. Self-host for free. Appwrite Cloud has a generous free tier. --- ## Source & Thanks > Created by [Appwrite](https://github.com/appwrite). Licensed under BSD-3-Clause. > > [appwrite](https://github.com/appwrite/appwrite) — ⭐ 55,500+ --- ## 快速使用 ```bash docker run -it --rm appwrite/appwrite ``` 打开 `http://localhost/console` — 后端平台就绪。 --- ## 简介 Appwrite 是一个拥有 55,500+ GitHub stars 的开源后端平台,提供认证、数据库、存储、函数、消息和实时订阅。支持 12+ 语言 SDK。是为 AI 应用构建完整后端的最快方式。 --- ## 来源与感谢 > Created by [Appwrite](https://github.com/appwrite). Licensed under BSD-3-Clause. > > [appwrite](https://github.com/appwrite/appwrite) — ⭐ 55,500+ --- Source: https://tokrepo.com/en/workflows/4358c35f-563a-4587-acde-f1bf4a66e31f Author: TokRepo精选