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:
- Add an MCP Server credential in Credentials (select the "MCP Server" type).
- The agent uses
mcp.list_toolsto discover available tools on the server (auto-allowed by default policy). - The agent uses
mcp.call_toolto invoke a specific tool, which requires approval under the default policy. - 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.