Skip to content
Browse the documentation

MCP (Model Context Protocol)

Call tools on MCP servers through AgentLock so agents never hold the MCP server credentials.

What is MCP support?

AgentLock can act as a secure proxy for Model Context Protocol (MCP) servers. Instead of giving your agent direct access to MCP server credentials, the agent calls MCP tools through AgentLock:

  1. Add an MCP Server credential in Credentials (select the "MCP Server" type).
  2. The agent uses mcp.list_tools to discover available tools on the server (auto-allowed by default policy).
  3. The agent uses mcp.call_tool to invoke a specific tool, which requires approval under the default policy.
  4. AgentLock authenticates with the MCP server using the stored credentials. The agent never sees the auth token.

This keeps your MCP server credentials secure while still letting agents use MCP tools.

How do I set up an MCP server?

Go to Credentials and click Add Credential, then select MCP Server. You can choose from the built-in catalog of popular MCP servers or configure a custom server URL.

For each MCP server you need:

  • Server URL — The endpoint of the MCP server.
  • Auth token — The authentication token for the server (stored encrypted, never exposed to agents).

Once configured, agents can use mcp.list_tools and mcp.call_tool to interact with the server.

MCP (Model Context Protocol) | AgentLock Docs