---
layout: article
title: Claude Code
description: Learn how to use Claude Code with Appwrite through the Appwrite plugin, quick start prompts, and the Appwrite MCP server for AI-assisted development.
---

## 1. Install the Appwrite plugin

The fastest way to get started with Appwrite in Claude Code is to install the [**Appwrite plugin**](https://claude.com/plugins/appwrite) from the official marketplace. The plugin includes agent skills for the CLI and all major SDKs, giving Claude Code the context it needs to work with your Appwrite projects.

To install the plugin, run the following command in your terminal:

```bash
claude plugin install appwrite@claude-plugins-official
```

Once installed, run Claude Code and configure the plugin:

- Run `/plugins` in Claude Code.
- Go to the **Installed** tab.
- Select the **Appwrite** plugin from the list.
- Choose **Configure options**.
- Enter your Appwrite endpoint, project ID, and API key when prompted.

![Configure the Appwrite plugin in Claude Code](/images/docs/mcp/claude-code/configure-plugin.avif)

After saving the configuration, run `/reload-plugins` to apply the changes to your current session. The plugin options configure agent skills. Add the remote Appwrite MCP server in [Step 3](#step-3) so Claude Code can call Appwrite APIs and search the documentation through OAuth.

**Prefer to skip the plugin?**

If you'd rather configure the MCP server on its own, skip to [Step 3](#step-3).

## 2. Quick start prompts

Get started quickly with these pre-built prompts for common Appwrite integrations:

- [TanStack Start](/docs/tooling/ai/quickstart-prompts/tanstack-start)
- [Next.js](/docs/tooling/ai/quickstart-prompts/nextjs)

[Browse all quick start prompts](/docs/tooling/ai/quickstart-prompts)

## 3. Add the MCP server

Connect the Appwrite MCP server to Claude Code for deeper integration with the Appwrite API and documentation. It is a remote HTTP server, so there are no additional pre-requisites to install.

Run the following command in your terminal to add the MCP server:

```bash
claude mcp add --transport http appwrite https://mcp.appwrite.io/
```

The server uses OAuth for authentication. Run `/mcp` in Claude Code, select **appwrite**, and choose **Authenticate**. Your browser opens so you can sign in to your Appwrite account and authorize access.

If you run Claude Code on a remote host, log in from the shell with `--no-browser`:

```bash
claude mcp login appwrite --no-browser
```

Open the printed authorization URL in a browser on your local machine, sign in, and authorize access. After you approve, copy the full `http://localhost:.../callback` URL from the address bar and paste it into the Claude Code prompt. Use an interactive SSH session (`ssh -t`) so the prompt can accept the paste. This is the same localhost-callback pattern described in [Authenticate from a remote machine](/docs/tooling/ai/mcp-servers#remote).

## 4. Verify MCP tools

Run the following command in your terminal (where Claude Code is running).

```bash
/mcp
```

You should see the added MCP server listed there.

![Verify MCP tools](/images/docs/mcp/claude-code/verify-mcp-tools.avif)

## 5. Test the integration

Try out the following example prompts:

**Example prompts:**

- `Create a new user in my Appwrite project`
- `List all databases in my project`
- `Show me the tables in my database`
- `How do I set up real-time subscriptions in Appwrite?`
- `Show me how to authenticate users with OAuth`
- `How do I implement file uploads with Appwrite Storage?`

![Implement file uploads](/images/docs/mcp/claude-code/implement-file-uploads.avif)
