> ## 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.

# Register a custom MCP server

> Creates a custom MCP server. Validates HTTPS requirement. Supports multiple auth types (direct, basic, env_var, account). Encrypts credentials before storage. Triggers async tool sync.




## OpenAPI

````yaml /openapi/tools.yaml post /mcp-registry
openapi: 3.1.0
info:
  title: Connie Tools API
  version: 1.0.0
  description: >
    API for the Tools module â€” the connectivity layer that manages OAuth
    integrations, MCP (Model Context Protocol) servers, and webhooks.

    **Important:** "Tools" here refers to the module that *connects* external
    services and manages integrations â€” not to the built-in AI tools (like CRM
    operations, web browsing, etc.) that are documented in the AI & Brain
    module. Think of this module as the "connectors" layer: it handles OAuth
    flows, MCP server connections, and webhook ingestion.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Integrations
    description: Manage connected integration accounts
  - name: MCP Connections
    description: Model Context Protocol server connections and OAuth flows
  - name: MCP Registry
    description: MCP server registry management
  - name: MCP Tools
    description: Tool-level enable/disable management for MCP servers
  - name: Integration Providers
    description: Available integration provider catalog
  - name: Webhooks
    description: Inbound webhook handlers for external services
paths:
  /mcp-registry:
    post:
      tags:
        - MCP Registry
      summary: Register a custom MCP server
      description: >
        Creates a custom MCP server. Validates HTTPS requirement. Supports
        multiple auth types (direct, basic, env_var, account). Encrypts
        credentials before storage. Triggers async tool sync.
      operationId: createMcpServer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspaceId
                - serverType
                - name
                - serverUrl
              properties:
                workspaceId:
                  type: string
                  format: uuid
                serverType:
                  type: string
                  enum:
                    - custom
                name:
                  type: string
                description:
                  type: string
                serverUrl:
                  type: string
                  format: uri
                  description: HTTPS required
                headers:
                  type: object
                  additionalProperties:
                    type: string
                accessMode:
                  type: string
                  enum:
                    - everyone
                    - specific
                    - specific_users
                    - creator_only
                  default: everyone
                accessibleTo:
                  type: array
                  items:
                    type: string
                    format: uuid
                authConfig:
                  $ref: '#/components/schemas/McpAuthConfig'
      responses:
        '201':
          description: MCP server created
          content:
            application/json:
              schema:
                type: object
                properties:
                  mcp:
                    $ref: '#/components/schemas/McpServer'
components:
  schemas:
    McpAuthConfig:
      type: object
      properties:
        type:
          type: string
          enum:
            - direct
            - direct_basic
            - env_var
            - basic
            - account
            - none
        headerName:
          type: string
        value:
          type: string
          writeOnly: true
        prefix:
          type: string
        username:
          type: string
        password:
          type: string
          writeOnly: true
    McpServer:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        server_url:
          type: string
          format: uri
        server_type:
          type: string
          enum:
            - custom
        enabled:
          type: boolean
        access_mode:
          type: string
          enum:
            - everyone
            - specific
            - creator_only
        created_at:
          type: string
          format: date-time
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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