Agent

Connect your AI assistant to your engine with ICP MCP

All help topics

ICP MCP is DFINITY's official connector between an AI assistant and the Internet Computer. Add it to Claude, ChatGPT or another app that supports MCP, and the assistant can read your engine and deploy to it.

  1. Add the connector to your assistant. For Claude or ChatGPT, open the engine's Build with agents page and, under Other ways to build, click Add to Claude or Add to ChatGPT. In another app, such as Cursor or Claude Code, add https://mcp.internetcomputer.org/mcp as a custom connector or MCP server.
  2. Connect it in the assistant and sign in with Internet Identity. Use the identity that you use for the console.
  3. Pick how long the connection lasts, and Questions only or Actions & questions. With Questions only, the assistant reads but changes nothing. Then click Allow access.
  4. Give the assistant the ids it needs. Press ⌘K or Ctrl+K, select an engine, app, canister or node, and press ⌘Enter or Ctrl+Enter. This copies a ready-made prompt with the ids. Paste it into the assistant and add your request.
  5. Let the assistant join the engine's team, as the next section tells.
Its role on the engine
  • On each engine, the connector has its own principal, not your console one. That principal has no role until it joins the engine's team.
  • If you own the engine and allowed Actions & questions, the assistant can add its principal as a Developer for you.
  • Otherwise it gives you a link that opens Add member on the engine's Team page, with its principal filled in. Today only the engine owner can add members, so if you are not the owner, send the link to the owner.
  • The owner checks the principal and the role, then clicks Add member.
  • A Developer can read the engine and create and deploy canisters. It cannot delete apps, manage members or change settings.
Good to know
  • Through the engine operator, the assistant lists the engine's canisters, reads their status, cycles and logs, and creates and installs canisters. To call an app's own methods, the app must declare its canisters to ICP MCP in its /.well-known/ic-architecture file.
  • An agent in a cloud sandbox, such as Claude Code on the web, cannot finish the icp CLI's browser sign-in. Give it this connector: the prompt on Build with agents tells it to deploy through the connector.
  • Add the Internet Computer MCP connector in the command palette opens the connector's setup page, with the steps for each assistant. So does ICP MCP for your AI assistant under Build it by hand.
  • To stop access, remove the connector in your assistant: it stops at once. To take away its role too, use Remove from engine on the engine's Team page.

More about the same page

Still stuck? Contact support