# Get MCP server

> Source: https://truto.one/docs/api-reference/admin/mcp/get/

`GET /integrated-account/{integrated_account_id}/mcp/{id}`

Resource: **MCP**

## Path parameters

- **`integrated_account_id`** _(string, required)_
  The ID of the integrated account.
- **`id`** _(string, required)_
  The ID of the MCP server to retrieve.

## Response body

- **`id`** _(string)_
  Unique identifier for the MCP server.
- **`name`** _(string)_
  Human-readable name for the MCP server.
- **`integrated_account_id`** _(string)_
  The integrated account this MCP server is bound to.
- **`config`** _(object)_
  Optional scoping for the MCP server. When omitted, all available tools for the integrated account are exposed.
  - **`methods`** _(array<string>)_
    Restrict the MCP server to these Truto method names. Combined with `tags` using AND semantics.
  - **`tags`** _(array<string>)_
    Restrict the MCP server to tools whose resources carry these tags.
- **`expires_at`** _(string)_
  Optional expiry timestamp. When set, the MCP server's token is invalidated after this time.
- **`created_by`** _(string)_
  ID of the user who created the MCP server.
- **`created_at`** _(string)_
  Time at which the MCP server was created.
- **`updated_at`** _(string)_
  Time at which the MCP server was last updated.

## Code examples

### Truto CLI

```bash
truto mcp-tokens get '<integrated_account_id>' '<token_id>' -o json
```

### curl

```bash
curl -X GET 'https://api.truto.one/integrated-account/{integrated_account_id}/mcp/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/integrated-account/{integrated_account_id}/mcp/{id}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/integrated-account/{integrated_account_id}/mcp/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
