---
docId: doc_7e18906518f744a296f8f7df2abc6b92
title: Get an MCP server
description: "Read an MCP server, its tools, and pending credential steps."
api:
  group: herramientas/servidores-mcp
  auth: bearer
  operations:
    - operationId: getMcpServer
      method: GET
      path: '/v1/tools/mcp/{mcpId}'
      postmanName: Get an MCP server
---

<script>
  import { Ways, Collapsible } from '$lib/components';
</script>

# Get an MCP server

Read the server connection without exposing credentials. The response includes available and installed tools, each slot's state in `secrets[]`, and the next step in `nextStep`.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/tools/mcp/$MCP_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tools.mcp.get("mcp_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `mcpId` | string | Id of the MCP server | ✓ |

## Response

`data` is the server:

```json
{
  "status": "success",
  "data": {
    "id": "QZPHpckDPC58JIVLQA3Z",
    "name": "Linear",
    "description": "Support team issues",
    "url": "https://mcp.linear.app/mcp",
    "transport": "streamable-http",
    "slug": "a1b2c3",
    "authType": "bearer",
    "auth": { "type": "bearer" },
    "status": "pending_config",
    "lastError": null,
    "serverInfo": { "name": "linear-mcp", "version": "1.4.0" },
    "customHeaderNames": [],
    "discoveredToolsCount": 2,
    "installedToolsCount": 0,
    "lastSyncAt": null,
    "createdAt": "2026-10-28T12:02:11.410Z",
    "updatedAt": "2026-10-28T12:03:05.000Z",
    "version": 1,
    "verified": true,
    "secrets": [
      {
        "slot": "auth.token",
        "state": "authorized",
        "secretId": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
      }
    ],
    "discoveredTools": [
      {
        "name": "create_issue",
        "description": "Create a new issue in Linear",
        "inputSchema": {
          "type": "object",
          "properties": {
            "title": { "type": "string" },
            "teamId": { "type": "string" }
          },
          "required": ["title", "teamId"]
        },
        "installed": false
      },
      {
        "name": "search_issues",
        "description": "Search issues by text query",
        "inputSchema": {
          "type": "object",
          "properties": { "query": { "type": "string" } }
        },
        "installed": false
      }
    ],
    "installedTools": [],
    "nextStep": "Verified. Choose which tools to install with POST /v1/tools/mcp/QZPHpckDPC58JIVLQA3Z/tools/sync: create_issue, search_issues."
  }
}
```

## Response fields

<Collapsible summary="Show all fields">

The summary, through `updatedAt`, contains the fields from [list MCP servers](/api-reference/mcp-servers/list#response-fields).

| Field | Type | Description |
|-------|------|-------------|
| `version` | number | Goes up with every change to the connection. Send it as `expectedVersion` when you [update](/api-reference/mcp-servers/update) |
| `verified` | boolean | `true` if the last test finished well and is still current for this connection and these secrets |
| `secrets` | array | One entry per slot: `slot`, `state`, and `secretId` if a secret is bound. See [slot states](/api-reference/secrets#slot-states) |
| `discoveredTools` | array | What the server offered in the last test |
| `discoveredTools[].name` | string | Original name of the tool on the server. It is the one you send in `tools` |
| `discoveredTools[].description` | string | Description the server gives |
| `discoveredTools[].inputSchema` | object | JSON Schema of its arguments |
| `discoveredTools[].installed` | boolean | Whether it is installed in the catalog |
| `installedTools` | array | The installed tools |
| `installedTools[].id` | string | The `toolId` in the catalog. You connect it to an agent with it |
| `installedTools[].name` | string | The name the agent sees: `mcp_<tool>_<slug>` |
| `installedTools[].mcpToolName` | string \| null | The original name on the server |
| `verification` | object | Only after a test: `{ "confirmed": true }` if the connection passed |
| `testError` | object | Only when connecting: `{ code, message }` when the connection was saved but the first test failed |
| `secretsError` | object | Only when connecting or updating with `secrets`: `{ code, message }` when the connection was saved but a secret could not be bound |
| `nextStep` | string | English text that says what is missing, in order. It is for people and assistants; do not program against its wording |

### What `nextStep` says

| Situation | `nextStep` starts with |
|-----------|------------------------|
| There are slots in `missing` or `needs_authorization` | `Bind a secret to: <slots>…` |
| It uses OAuth and needs authorizing | `This server uses OAuth: a person signed in to Platica has to authorize it at <page>…` |
| It needs testing | `Test the connection…` |
| Verified, no tools installed | `Verified. Choose which tools to install…`, with the available names |
| Verified, but the server offers no tools | `The server answered but offers no tools.` |
| With tools installed | `Connected. Give a tool to an agent…` |

To program against it, use `status`, `verified`, `secrets[].state`, and `installedTools`.

</Collapsible>

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | The credential covers several workspaces and `workspace` is missing or is not one of them |
| `403` | `FORBIDDEN` | The person behind the token does not have access to Integrations |
| `404` | `NOT_FOUND` | The server does not exist in this workspace |

See [Errors](/api-reference/errors) for the full shape of an error.

## Notes

- Credentials are never returned: of the authentication you only see the type, and of the headers only the names in `customHeaderNames`.
- An installed tool is connected to an agent with [connect a tool](/api-reference/agents/tools/connect): `PUT /v1/agents/{agentId}/tools/{toolId}`, with an `id` from `installedTools`.
- `discoveredTools` comes from the last test. If the server changed its tools, [test it](/api-reference/mcp-servers/test) again.
