MCP Configs2026年4月3日·1 分钟阅读

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.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Mcp Config
安装
Stage only
信任
信任等级:Established
入口
appwrite.md
安全暂存命令
npx -y tokrepo@latest install 4358c35f-563a-4587-acde-f1bf4a66e31f --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Appwrite provides auth, databases, storage, and functions as open-source BaaS.
§01

What it is

Appwrite is an open-source backend-as-a-service platform that provides authentication, databases, file storage, serverless functions, and messaging APIs. It runs as a set of Docker containers and exposes REST and GraphQL APIs. SDKs are available for web, mobile, and server-side languages.

It targets developers building AI applications who need a complete backend without the complexity of managing separate services for auth, storage, and database. It serves as a self-hostable alternative to Firebase.

§02

How it saves time or tokens

Appwrite eliminates backend infrastructure setup. Instead of configuring a database, auth provider, file storage, and serverless runtime separately, you run one Docker Compose command. For AI apps, this means you can focus on model integration and user experience while Appwrite handles user management, data persistence, and file uploads. The serverless functions let you run AI inference as backend operations triggered by database events or HTTP requests.

§03

How to use

  1. Start Appwrite with Docker:
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
  1. Access the console at http://localhost and create a project.
  1. Use the SDK in your app:
import { Client, Databases } from 'appwrite';

const client = new Client()
    .setEndpoint('http://localhost/v1')
    .setProject('your-project-id');

const databases = new Databases(client);

// Store AI conversation
await databases.createDocument(
    'ai-db', 'conversations',
    'unique()',
    { prompt: 'Explain Docker', response: 'Docker is...', model: 'gpt-4o' }
);
§04

Example

from appwrite.client import Client
from appwrite.services.databases import Databases

client = Client()
client.set_endpoint('http://localhost/v1')
client.set_project('your-project-id')
client.set_key('your-api-key')

db = Databases(client)

# Create a collection for AI model outputs
db.create_collection(
    database_id='ai-db',
    collection_id='predictions',
    name='Model Predictions'
)

# Store a prediction result
db.create_document(
    database_id='ai-db',
    collection_id='predictions',
    document_id='unique()',
    data={
        'input': 'Sample input text',
        'output': 'Model prediction result',
        'confidence': 0.95,
        'model_version': 'v2.1'
    }
)
§05

Related on TokRepo

§06

Common pitfalls

  • Appwrite runs multiple Docker containers. Ensure your server has sufficient resources (at least 2GB RAM recommended). Development laptops should allocate enough Docker memory.
  • The serverless functions runtime has cold-start latency. For real-time AI inference, consider running your model server separately and using Appwrite for data management.
  • Database queries have size limits. For large-scale analytics on AI outputs, export data to a dedicated analytics database rather than querying Appwrite directly.

常见问题

How does Appwrite compare to Firebase?+

Both provide auth, database, storage, and functions. Appwrite is open-source and self-hostable, so your data stays on your infrastructure. Firebase is Google-hosted only. Appwrite provides a more traditional database model (documents with typed attributes) versus Firebase's NoSQL approach.

What programming languages does Appwrite support?+

Appwrite provides SDKs for JavaScript/TypeScript, Python, PHP, Ruby, Dart/Flutter, Swift, Kotlin, and .NET. Server-side SDKs support Node.js, Python, PHP, Ruby, Deno, Kotlin, Swift, and Go. Serverless functions can run in Node.js, Python, PHP, Ruby, Dart, and other runtimes.

Can I use Appwrite with AI/ML models?+

Yes. Use Appwrite's database to store model inputs and outputs, file storage for model artifacts and training data, and serverless functions to trigger inference. The event system can run functions automatically when new data is created, enabling automated AI processing pipelines.

Is Appwrite production-ready?+

Yes. Appwrite is used in production by many teams. It supports horizontal scaling, automated backups, and role-based access control. For high-traffic applications, deploy with a managed database backend and configure caching and CDN for static assets.

Does Appwrite support real-time data?+

Yes. Appwrite provides real-time subscriptions via WebSocket. You can subscribe to database changes, file uploads, and authentication events. This enables live-updating UIs for AI applications -- for example, showing model predictions as they complete.

引用来源 (3)
🙏

来源与感谢

Created by Appwrite. Licensed under BSD-3-Clause.

appwrite — ⭐ 55,500+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产