Back to blogs

Connect the PaceUI MCP Server to a Coding Agent

Configure PaceUI MCP in a compatible editor so an agent can search for blocks and add them to your project. See free tools, Pro tools, and setup.

MCP

PaceUI

PaceUI MCP gives compatible coding agents tools to search the PaceUI block catalog and add block source to a project. The free search and add tools work without an API key. Pro tools for UI generation and design migration require a PaceUI API key.

This walkthrough shows the server configuration and example prompts. MCP support and configuration screens vary by editor, so use the settings format documented by your IDE.

1. Add the server to your editor

For an editor that accepts an mcpServers configuration with Streamable HTTP transport, add the following server entry. PaceUI's MCP endpoint uses HTTP transport; editor configuration fields can differ, so check your editor's MCP settings if this shape does not match:

MCP config
{
  "mcpServers": {
    "PaceUI": {
      "type": "http",
      "url": "https://paceui.com/api/mcp"
    }
  }
}

Save the configuration and reload or restart the MCP connection in your editor. The PaceUI MCP documentation provides examples for specific IDEs, including editors that use a different transport or configuration shape.

2. Search for and add a block

Ask your coding agent to find a block for the interface you are building, then ask it to add the one you choose. For example:

Example prompts
Search PaceUI for a dashboard stat card and summarize the matching blocks.

Add the PaceUI dashboard-stat-3 block to this project and tell me which files and dependencies changed.

The free find-block tool searches by keyword, component name, or category. find-block-by-tags filters by design tags and layout requirements. add-block adds block code and dependencies to the repository. Review the proposed code and use the block catalog to inspect a block before adapting it.

3. Enable Pro tools when needed

Tools for generating UI and migrating a design are Pro features. Create an API key from your PaceUI account and pass it to the MCP server as an authorization header:

Pro MCP config
{
  "mcpServers": {
    "PaceUI": {
      "type": "http",
      "url": "https://paceui.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${PACEUI_API_KEY}"
      }
    }
  }
}

Set PACEUI_API_KEY using your editor's supported secret or environment-variable method. Avoid committing a real key to your repository. The exact place to configure environment variables depends on the editor.

Available tools and their access levels are listed in the MCP guide. Check PaceUI pricing for current plan details.

Troubleshooting

  • If the connection fails, verify the endpoint is https://paceui.com/api/mcp and check which transport your editor supports.
  • If a tool reports that a license is required, check that you are calling a Pro tool and that the API key is configured as an authorization bearer token.
  • For editor-specific instructions and troubleshooting, see PaceUI MCP setup.