---
schema_version: "1"
id: 1ad736143883716553fb1ac82091e75278f78edcf3d5bd04b10c2f8db18af2a4
title: agent mcp get (Developer Preview)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/agent/cli_reference_agent_mcp_get.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_agent_mcp_get.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c378bff3ca32ea0b2a67cc87e9c6ea4cda7b70f694417b6ea6ff4aedec2f774e
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# agent mcp get (Developer Preview)

Get a single MCP server registered in the API Catalog.

**note:** This command is available as a developer preview. The command isn't generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality developed with these commands or tools.

## Description for agent mcp get

Retrieves the details of an MCP (Model Context Protocol) server by its identifier, including its name, label, type, status, and server URL.

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;mcp&#8209;server&#8209;id</code> | <code>&#8209;i</code> | **Type:** Value<br>**Required**<br><br>The identifier of the MCP server to retrieve. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;o</code> | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for agent mcp get

Get an MCP server by id in the default target org:

```shell
sf agent mcp get --target-org myOrg --mcp-server-id 0Mx000000000001
```

Get an MCP server and output as JSON:

```shell
sf agent mcp get --target-org myOrg --mcp-server-id 0Mx000000000001 --json
```
<!-- prettier-ignore-end -->
