> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Mcp

> Remove an MCP from the user's library.

Workspaces that already hold this MCP keep it — the workspace
relation is derived by name, not a foreign key, and tearing down a
live stateful MCP session as a side effect of a library edit would
surprise the user.



## OpenAPI

````yaml /versions/2.0.6dev/en/deploy/openapi.json delete /mcp/{mcp_id}
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.5
servers: []
security: []
paths:
  /mcp/{mcp_id}:
    delete:
      tags:
        - mcp
      summary: Delete Mcp
      description: |-
        Remove an MCP from the user's library.

        Workspaces that already hold this MCP keep it — the workspace
        relation is derived by name, not a foreign key, and tearing down a
        live stateful MCP session as a side effect of a library edit would
        surprise the user.
      operationId: delete_mcp_mcp__mcp_id__delete
      parameters:
        - name: mcp_id
          in: path
          required: true
          schema:
            type: string
            title: Mcp Id
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            description: >-
              Caller's user ID. Temporary header-based identity; will be
              replaced by JWT auth.
            title: X-User-Id
          description: >-
            Caller's user ID. Temporary header-based identity; will be replaced
            by JWT auth.
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````