# Petal Components MCP

> Petal Components MCP is an open-source MCP server. Phoenix LiveView component schemas from petal_components, exposed to AI coding assistants. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://petal.build/components/mcp
- **Repository:** https://github.com/petalframework/petal-components-mcp
- **MCP Registry name:** io.github.petalframework/petal-components-mcp
- **Listing updated:** 2026-11-13

## About

Phoenix LiveView component schemas from petal_components, exposed to AI coding assistants.

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http petal-components-mcp https://mcp.petal.build/mcp
```

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

```sh
https://mcp.petal.build/mcp
```

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

```json
{
  "mcpServers": {
    "petal-components-mcp": {
      "url": "https://mcp.petal.build/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "petal-components-mcp": {
      "type": "http",
      "url": "https://mcp.petal.build/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "petal-components-mcp": {
      "serverUrl": "https://mcp.petal.build/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "petal-components-mcp": {
      "type": "http",
      "url": "https://mcp.petal.build/mcp"
    }
  }
}
```

## FAQ

### Is Petal Components MCP free?

Yes. Petal Components MCP is open source, so you can use and self-host it for free.

### How do I add Petal Components MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http petal-components-mcp https://mcp.petal.build/mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/petal-components-mcp
