Skip to content
BlinkpageBlinkpageDocs

Blinkpage MCP

Connect Claude Desktop, Claude Code, or Cursor to Blinkpage with the MCP server, then list projects and upload components from chat.

On this page

The Blinkpage MCP server lets an AI assistant work with your Blinkpage projects. Your MCP client starts the server for you with npx, so there is nothing to install by hand.

#Before you begin

  • Node.js 18 or later on your computer. Run node --version to check.
  • A Blinkpage account with at least one project.
  • An MCP client: Claude Desktop, Claude Code, or Cursor.

#Create a token

The server signs in to your account with a personal access token.

  1. Open your account

    Click the profile icon in the top bar, then click Account.

  2. Create the token

    Expand Advanced, click Create New Token, enter a name such as "Claude Desktop on Mac", and click Create Token.

  3. Copy the token

    Click Copy in the Your new token dialog. Blinkpage shows the token only once.

See Personal access tokens for every option.

#Configure your client

The server reads its settings from environment values. Your client passes them in the env block of its config.

ValueRequiredWhat it holds
BLINKPAGE_TOKENYesYour personal access token, which starts with bpat_
BLINKPAGE_API_URLYesThe Blinkpage API address. Copy it from the configs below
BLINKPAGE_LOG_LEVELNodebug, info, warn, or error. The default is info

Choose your client and add the server. Replace bpat_<your-token> with your own token.

In Claude Desktop, open Settings, go to Developer, and click Edit Config. Add the server under mcpServers in claude_desktop_config.json, save the file, then quit Claude Desktop completely and open it again.

claude_desktop_config.json
{  "mcpServers": {    "blinkpage": {      "command": "npx",      "args": ["-y", "@blinkpage/mcp"],      "env": {        "BLINKPAGE_TOKEN": "bpat_<your-token>",        "BLINKPAGE_API_URL": "https://blinkpage-prod-dfbef.aws.spicaengine.com/api/fn-execute"      }    }  }}

Other MCP clients that start local servers accept the same command, args, and env values.

#Check the connection

  1. Restart your client

    If you did not restart your client after you saved the config, quit it completely and open it again.

  2. Ask for your projects

    Send the prompt "List my Blinkpage projects."

  3. Allow the tool

    If your client asks for permission to run list_projects, allow it.

  4. Check the answer

    The assistant replies with the names of your projects. If it does not, see Troubleshooting.

#Available tools

The server fetches its tool list from Blinkpage when it starts. The list can grow, so restart your client after Blinkpage adds tools. These tools are available today.

ToolWhat it doesExample prompt
list_projectsLists the projects you can access. Most other tools need a project from this list"List my Blinkpage projects."
pb_list_pagesLists the pages in a project with their titles and slugs"Which pages does Blinkpage Demo have?"
acc_list_recent_pagesLists your most recently created pages across all projects"Show my five newest Blinkpage pages."
cc_listLists the custom components in a project and their versions"Which custom components does Blinkpage Demo have?"
upload_componentBuilds a component from your code and uploads it to a project"Upload this component to Blinkpage Demo as MyHero, version 1."

#Upload a component from chat

Give the assistant your component code and the project name. The assistant looks up the project, builds the component, and uploads it.

  • The component name starts with a capital letter and uses only letters and numbers.
  • The version is a whole number that starts at 1. Raise it each time you upload the same component again.
  • The assistant follows the component rules in the tool description. See Custom components for how a component is structured.

After a successful upload, the component appears in the Custom Components tab of the project and in the Custom category of the block library.

#Next steps

Edit this page(opens in a new tab)