Skip to content
Back to Changelog

Deploy your own MCP server with the new Functions template

The new MCP server function template deploys a stateless Model Context Protocol server over HTTPS, built with the official MCP Python SDK. It ships with two demo tools, optional bearer authentication, and support for both the legacy MCP handshake and the stateless 2026-07-28 protocol.

Create it from the Console under Functions > Templates, and your function's domain becomes an MCP endpoint you can connect to Claude Code, Cursor, and other AI clients:

Bash
claude mcp add --transport http my-mcp https://<your-function>.appwrite.run

Register your own tools in src/app.py with the @server.tool decorator, and use the dynamic API key to build tools that read and write your Appwrite project's data.

Two trade-offs to know: the server is stateless JSON only, so there is no SSE streaming or server-initiated messages, and tool calls are synchronous with a 30-second execution cap (25-second soft deadline by default). The announcement covers both in more detail.

Read the announcement

Start building like a team of hundreds today_

Free
$0

A great fit for passion projects and small applications.

Start project
Pro Popular
$25 /month

For production applications that need powerful functionality and resources to scale.

Start project
Enterprise
Custom

For enterprises that need more power and premium support.

Contact us