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

# Official Mcp Server Create

> Endpoint to create a new official MCP server.

Args:
    server (OfficialMCPServerCreate): The request body containing the server definition.

Returns:
    OfficialMCPServer: The created official MCP server object.

Raises:
    HTTPException 400: If input validation fails
    HTTPException 409: If the server creation fails due to duplicate name or runtime error.



## OpenAPI

````yaml post /api/official-mcp-server
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/official-mcp-server:
    post:
      tags:
        - Official MCP Server
      summary: Official Mcp Server Create
      description: |-
        Endpoint to create a new official MCP server.

        Args:
            server (OfficialMCPServerCreate): The request body containing the server definition.

        Returns:
            OfficialMCPServer: The created official MCP server object.

        Raises:
            HTTPException 400: If input validation fails
            HTTPException 409: If the server creation fails due to duplicate name or runtime error.
      operationId: official_mcp_server_create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OfficialMCPServerCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfficialMCPServer'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    OfficialMCPServerCreate:
      properties:
        name:
          type: string
          title: Name
          description: Name of the official MCP server
        domain:
          type: string
          title: Domain
          description: Domain of the MCP server
        mcp_url:
          type: string
          title: Mcp Url
          description: MCP server URL
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Description of the MCP server
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
          description: Website URL of the MCP server
        help_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Help Url
          description: Help/documentation URL for the MCP server
      type: object
      required:
        - name
        - domain
        - mcp_url
      title: OfficialMCPServerCreate
    OfficialMCPServer:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the official MCP server
        name:
          type: string
          title: Name
          description: Name of the official MCP server
        domain:
          type: string
          title: Domain
          description: Domain of the MCP server
        mcp_url:
          type: string
          title: Mcp Url
          description: MCP server URL
        description:
          type: string
          title: Description
          description: Description of the MCP server
        website:
          type: string
          title: Website
          description: Website URL of the MCP server
        help_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Help Url
          description: Help/documentation URL for the MCP server
        created_by:
          type: string
          title: Created By
          description: User who created the official MCP server
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The date and time when the official MCP server was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: The date and time when the official MCP server was last updated.
      type: object
      required:
        - id
        - name
        - domain
        - mcp_url
        - description
        - website
        - created_by
        - created_at
        - updated_at
      title: OfficialMCPServer
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````