---
search:
  tags:
    - agents
    - POST
seo:
  description: >-
    Creates or updates an agent-scoped MCP connection for a… Reference for the
    POST /agents/{id}/native/mcp-connections endpoint in the Leadtime Public API
    API.
sidebar:
  badge: POST
  label: Create or update a native custom-agent MCP connection
title: Create or update a native custom-agent MCP connection
type: openapi-operation
---
Creates or updates an agent-scoped MCP connection for a native custom agent. Credentials are stored separately per agent even when multiple agents use the same MCP server URL.

<Operation source="api-reference" id="agentscontroller-savenativemcpconnection" />
