Internet Identity Adds MCP Server for AI Agents | DFINITY Foundation
Arshavir, the senior software engineer and team lead, introduces the integration of the Model Context Protocol (MCP) with Internet Identity (II) to enable AI agents to perform actions on behalf of users securely. By acting as a remote key manager within a trusted execution environment, the II-powered MCP server allows agents to interact with applications on the Internet Computer (IC) without requiring direct access to a user's private keys or passwords. This setup facilitates a shift where agents move beyond mere discussion about applications to actively executing tasks across them, significantly enhancing automation capabilities for complex or repetitive workflows. The core technical framework relies on the use of short-lived delegations, which are scoped to specific applications and granted by the MCP server based on predefined user policies. Arshavir explains that this approach allows for granular control, supporting various operational modes such as automated execution or permission-based steps where the user must sign off on actions. The server provides a suite of tools including methods for discovering and interacting with canisters, retrieving candid files, and managing user principals, thereby empowering agents to operate autonomously while maintaining a high level of security that avoids the risks associated with storing sensitive keys within the agent's own sandbox environment. Take a look at the demo between ChatGPT and Taggr: