---
title: "Add Mcp Instance To Client"
method: POST
path: "/v1/workspaces/{workspace}/clients/{client_id}/mcp-instances"
tags: ["v1", "protected", "clients"]
---

# Add Mcp Instance To Client

`POST /v1/workspaces/{workspace}/clients/{client_id}/mcp-instances`

## Path parameters

- `client_id` string, uuid, required
- `workspace` string, required — Slug of the workspace the request acts in

## Request body

- McpInstanceAssociationBody
  - `id` string, required
  - `namespace_prefix` string, nullable

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `d3ad8e1a3681` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/clients/:client_id/mcp-instances/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentarea/apis/agentarea-api/revisions/286327d8bd86?raw)
