# Get ActivePieces MCP servers for current tenant

`GET /api/integration/activepieces/mcp/tenant`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `projectId` (query, string, required) - ActivePieces project ID
  Type: string
  
  Example:
  
  ```json
  "project-123"
  ```

- `limit` (query, number, optional) - Number of results to return
  Type: number
  
  minimum: 1
  
  Example:
  
  ```json
  10
  ```

- `cursor` (query, string, optional) - Pagination cursor
  Type: string
  
  Example:
  
  ```json
  "cursor-abc123"
  ```

- `name` (query, string, optional) - Filter by MCP server name
  Type: string
  
  Example:
  
  ```json
  "my-mcp-server"
  ```

Responses:

- 200: Returns tenant MCP servers

Content type: application/json

Type: array

Items:
  Type: object

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/integration/activepieces/mcp/tenant?projectId=project-123' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/integration/activepieces/mcp/tenant?projectId=project-123', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/integration/activepieces/mcp/tenant?projectId=project-123',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
