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

# Add an MCP server

> Adds an MCP server by URL. The URL must be public HTTPS. To send a token, use `authConfig` with type `direct`; it is stored encrypted. Tool discovery starts in the background; call Refresh MCP server tools to wait for the result.




## OpenAPI

````yaml /openapi/tools.yaml post /mcp-registry
openapi: 3.1.0
info:
  title: Connie Tools API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for Tools and Skills: the tool catalogue,
    connected accounts, tool permissions, your own MCP servers, and workspace
    skills. They authenticate with your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Catalogue
    description: Browse tools and read one tool's inputs, output and price.
  - name: Permissions
    description: Whether Connie runs a tool without asking, asks first, or never runs it.
  - name: Connected accounts
    description: The app accounts connected to the workspace and who can use them.
  - name: MCP servers
    description: MCP servers you add to the workspace from Tools → Add → MCP.
  - name: Skills
    description: Reusable instructions Connie follows in chat, with optional context files.
paths:
  /mcp-registry:
    post:
      tags:
        - MCP servers
      summary: Add an MCP server
      description: >
        Adds an MCP server by URL. The URL must be public HTTPS. To send a
        token, use `authConfig` with type `direct`; it is stored encrypted. Tool
        discovery starts in the background; call Refresh MCP server tools to
        wait for the result.
      operationId: addMcpServer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspaceId
                - serverType
                - name
                - serverUrl
              properties:
                workspaceId:
                  type: string
                  format: uuid
                  description: >-
                    Must be in the body and match the workspace the request
                    resolves to.
                serverType:
                  type: string
                  enum:
                    - custom
                name:
                  type: string
                description:
                  type: string
                serverUrl:
                  type: string
                  format: uri
                accessMode:
                  type: string
                  enum:
                    - everyone
                    - creator_only
                    - specific_users
                  default: everyone
                accessibleTo:
                  type: array
                  description: Required when `accessMode` is `specific_users`.
                  items:
                    type: string
                    format: uuid
                authConfig:
                  type: object
                  description: Credentials to send with every request to the server.
                  properties:
                    type:
                      type: string
                      enum:
                        - direct
                        - direct_basic
                    headerName:
                      type: string
                      example: Authorization
                    prefix:
                      type: string
                      example: Bearer
                    value:
                      type: string
                      description: The token, for `direct`.
                    username:
                      type: string
                      description: For `direct_basic`.
                    password:
                      type: string
                      description: For `direct_basic`.
      responses:
        '201':
          description: Server added.
          content:
            application/json:
              schema:
                type: object
                properties:
                  mcp:
                    $ref: '#/components/schemas/McpServer'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    McpServer:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        server_url:
          type: string
        is_enabled:
          type: boolean
        access_mode:
          type: string
          description: '`everyone`, `specific` or `creator_only`.'
        accessible_to:
          type:
            - array
            - 'null'
          items:
            type: string
        created_by:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  responses:
    BadRequest:
      description: Missing or invalid input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: No valid session, or the session expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: You're not a member of the workspace, or your role doesn't allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.