# 46a MCP

> 46a MCP is an MCP server for design and media. MCP server that lets AI clients read and edit a live 46a project open in a browser. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, Web
- **Repository:** https://github.com/johnroy/46a-mcp
- **MCP Registry name:** io.github.johnroy/46a-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-11-18

## About

The README says this server gives an MCP client live access to a 46a project that is open in a user's browser. Instead of exporting or copying files, a client can list active browser sessions, read application state such as pages, objects and logs, and apply editor changes while the user watches.

Access works through a small set of tools. A client first lists live connections and picks a connection ID, then sends batched editor calls such as adding shapes, HTML or SVG objects, changing page and object fields, or generating an image. A separate inject tool runs a single expression in the browser session, which the README notes must evaluate to a Promise. Because connection IDs are ephemeral and reset on page reload, clients are expected to re-list connections when a call fails.

The server is exposed over streamable HTTP at a hosted endpoint, with OAuth as the default and basic auth as an alternative, and a stdio mode is also documented for local setups. It suits people who already use 46a and want an AI assistant to work directly inside an open project.

## Features

- **Live connection listing:** Lists open browser sessions by user and project so a client can target the right one.
- **Batched editor calls:** Runs multiple object creation and editor actions against one connection in a single request.
- **Application state reads:** Reads page, workspace, project, user, object and log data from the running editor.
- **Arbitrary browser inject:** Runs a single promise-returning expression in the connected browser session.
- **Image generation:** Creates an image through DALL-E and adds it to the open project.
- **Multiple auth options:** Supports OAuth by default and basic auth headers for HTTP clients.

## Good for

- Have an AI assistant add shapes, text or SVG objects to an open 46a project
- Read current project and page state so an assistant can answer questions about the work in progress
- Automate repetitive editor changes such as patching object fields across pages
- Generate an image with DALL-E and place it directly into a project

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http 46a-mcp https://46a.co/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://46a.co/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "46a-mcp": {
      "url": "https://46a.co/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "46a-mcp": {
      "type": "http",
      "url": "https://46a.co/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "46a-mcp": {
      "serverUrl": "https://46a.co/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "46a-mcp": {
      "type": "http",
      "url": "https://46a.co/mcp"
    }
  }
}
```

## Tools

- `listConnections`: Lists live browser connections, with an optional emailOrUsername filter.
- `callTools`: Runs 46a tool calls against one connection.
- `inject`: Runs a single promise-returning expression in the browser session.
- `hello_world`: Connectivity test tool.

## FAQ

### How does a client connect to the server?

The README describes adding https://46a.co/mcp as a custom connector in claude.ai, adding it with claude mcp add --transport http in Claude Code, or adding a streamable-http entry to an mcpServers config.

### Why does a connection ID stop working?

The README says connection IDs are ephemeral and become orphaned when the browser page reloads, so the client should list connections again.

### What does the inject tool require?

The README says the code passed to inject must be a single expression that evaluates to a Promise.

### How do I add 46a MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http 46a-mcp https://46a.co/mcp

### What are the best alternatives to 46a MCP?

The closest alternatives to 46a MCP are AI Photo Editor MCP, Cincopa MCP by usefulapi and AI Image Editor MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AI Photo Editor MCP](https://ai-powered.com/mcp/ai-photo-editor-mcp): AI Photo Editor MCP is an open-source MCP server for design and media.
- [Cincopa MCP by usefulapi](https://ai-powered.com/mcp/cincopa-mcp-by-usefulapi): Cincopa MCP by usefulapi is a freemium MCP server for design and media.
- [AI Image Editor MCP](https://ai-powered.com/mcp/ai-image-editor-mcp): AI Image Editor MCP is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/46a-mcp
