Petal Components MCP MCP server
An official MCP server provided by Petal for the petal_components Phoenix LiveView library. It exposes introspected schemas for 213 UI components, allowing AI coding assistants to retrieve accurate attributes, slots, defaults, and enums. This enables agents to generate correct HEEx markup without inventing Tailwind classes or guessing component interfaces.
Endpoint and access
No sign-in: your client connects and lists tools immediately, with no account or key.
No sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://mcp.petal.build/mcpWhat you can do with it
- Retrieve full schema for a specific component including attributes and slots
- List all available components in the petal_components library
- Get installation instructions for integrating the library into a Phoenix project
get_install_instructionslist_componentsget_component
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http petal-components-mcp https://mcp.petal.build/mcpCodex
Codex configuration
codex mcp add petal-components-mcp --url https://mcp.petal.build/mcpCursor
Cursor configuration
{
"mcpServers": {
"petal-components-mcp": {
"url": "https://mcp.petal.build/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"petal-components-mcp": {
"type": "streamableHttp",
"url": "https://mcp.petal.build/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"petal-components-mcp": {
"type": "http",
"url": "https://mcp.petal.build/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http petal-components-mcp https://mcp.petal.build/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"petal-components-mcp": {
"url": "https://mcp.petal.build/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"petal-components-mcp": {
"serverUrl": "https://mcp.petal.build/mcp"
}
}
}Other developer tools servers
Do you run Petal Components MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.