---
title: "Create or update MCP server"
method: POST
path: "/v0/servers"
tags: ["servers"]
---

# Create or update MCP server

`POST /v0/servers`

Create a new MCP server in the registry or update an existing one. Resources are immediately visible after creation.

## Request body

- ServerJSON
  - `$schema` string, uri, required — JSON Schema URI for this server.json format
  - `_meta` ServerMeta
    - `io.modelcontextprotocol.registry/publisher-provided` object — Publisher-provided metadata for downstream registries
  - `description` string, required — Clear human-readable explanation of server functionality.
  - `icons` Icon[] — Optional set of sized icons that the client can display in a user interface.
    - `mimeType` 'image/png' | 'image/jpeg' | 'image/jpg' | 'image/svg+xml' | 'image/webp' — Optional MIME type override if the source MIME type is missing or generic. Must be one of: image/png, image/jpeg, image/jpg, image/svg+xml, image/webp.
    - `sizes` string[] — Optional array of strings that specify sizes at which the icon can be used. Each string should be in WxH format (e.g., '48x48', '96x96') or 'any' for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size.
    - `src` string, uri, required — A standard URI pointing to an icon resource. Must be an HTTPS URL. Consumers SHOULD take steps to ensure URLs serving icons are from the same domain as the server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain executable JavaScript.
    - `theme` 'light' | 'dark' — Optional specifier for the theme this icon is designed for. 'light' indicates the icon is designed to be used with a light background, and 'dark' indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.
  - `name` string, required — Server name in reverse-DNS format. Must contain exactly one forward slash separating namespace from server name.
  - `packages` Package[] — Array of package configurations
    - `environmentVariables` KeyValueInput[] — A mapping of environment variables to be set when running the package.
      - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
      - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
      - `description` string — A description of the input, which clients can use to provide context to the user.
      - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
      - `isRequired` boolean — Whether the input is required
      - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
      - `name` string, required — Name of the header or environment variable.
      - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
      - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
      - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
    - `fileSha256` string — SHA-256 hash of the package file for integrity verification. Required for MCPB packages and optional for other package types. Authors are responsible for generating correct SHA-256 hashes when creating server.json. If present, MCP clients must validate the downloaded file matches the hash before running packages to ensure file integrity.
    - `identifier` string, required — Package identifier - either a package name (for registries) or URL (for direct downloads)
    - `packageArguments` Argument[] — A list of arguments to be passed to the package's binary.
      - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
      - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
      - `description` string — A description of the input, which clients can use to provide context to the user.
      - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
      - `isRepeated` boolean — Whether the argument can be repeated multiple times.
      - `isRequired` boolean — Whether the input is required
      - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
      - `name` string — The flag name (for named arguments), including any leading dashes. Empty for positional arguments.
      - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
      - `type` string, required — Argument type: 'positional' or 'named'
      - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
      - `valueHint` string — An identifier for positional arguments. Used in transport URL variable substitution.
      - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
    - `registryBaseUrl` string, uri — Base URL of the package registry
    - `registryType` string, required — Registry type indicating how to download packages (e.g., 'npm', 'pypi', 'oci', 'nuget', 'mcpb')
    - `runtimeArguments` Argument[] — A list of arguments to be passed to the package's runtime command (such as docker or npx). The runtimeHint field should be provided when runtimeArguments are present.
      - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
      - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
      - `description` string — A description of the input, which clients can use to provide context to the user.
      - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
      - `isRepeated` boolean — Whether the argument can be repeated multiple times.
      - `isRequired` boolean — Whether the input is required
      - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
      - `name` string — The flag name (for named arguments), including any leading dashes. Empty for positional arguments.
      - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
      - `type` string, required — Argument type: 'positional' or 'named'
      - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
      - `valueHint` string — An identifier for positional arguments. Used in transport URL variable substitution.
      - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
    - `runtimeHint` string — A hint to help clients determine the appropriate runtime for the package. This field should be provided when runtimeArguments are present.
    - `transport` Transport, required
      - `headers` KeyValueInput[] — HTTP headers for streamable-http or sse transports
        - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
        - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
        - `description` string — A description of the input, which clients can use to provide context to the user.
        - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
        - `isRequired` boolean — Whether the input is required
        - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
        - `name` string, required — Name of the header or environment variable.
        - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
        - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
        - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
      - `type` string, required — Transport type (stdio, streamable-http, or sse)
      - `url` string — URL for streamable-http or sse transports
    - `version` string — Package version. Must be a specific version. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').
  - `remotes` Transport[] — Array of remote configurations
    - `headers` KeyValueInput[] — HTTP headers for streamable-http or sse transports
      - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
      - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
      - `description` string — A description of the input, which clients can use to provide context to the user.
      - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
      - `isRequired` boolean — Whether the input is required
      - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
      - `name` string, required — Name of the header or environment variable.
      - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
      - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
      - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
    - `type` string, required — Transport type (stdio, streamable-http, or sse)
    - `url` string — URL for streamable-http or sse transports
  - `repository` Repository
    - `id` string — Repository identifier from the hosting service (e.g., GitHub repo ID). Owned and determined by the source forge. Should remain stable across repository renames and may be used to detect repository resurrection attacks - if a repository is deleted and recreated, the ID should change. For GitHub, use: gh api repos/<owner>/<repo> --jq '.id'
    - `source` string — Repository hosting service identifier. Used by registries to determine validation and API access methods.
    - `subfolder` string — Optional relative path from repository root to the server location within a monorepo or nested package structure. Must be a clean relative path.
    - `url` string, uri — Repository URL for browsing source code. Should support both web browsing and git clone operations.
  - `title` string — Optional human-readable title or display name for the MCP server.
  - `version` string, required — Version string for this server. SHOULD follow semantic versioning.
  - `websiteUrl` string, uri — Optional URL to the server's homepage, documentation, or project website.

## Response `200`

OK

- ServerResponse
  - `_meta` ServerResponseMeta, required
    - `aregistry.ai/deployments` ResourceDeploymentsMeta
      - `count` integer, required
      - `deployments` DeploymentSummary[], required
        - `deployedAt` string, date-time, required
        - `id` string, required
        - `origin` string, required
        - `providerId` string
        - `status` string, required
        - `updatedAt` string, date-time, required
        - `version` string
    - `aregistry.ai/semantic` ServerSemanticMeta
      - `score` number, double, required
    - `io.modelcontextprotocol.registry/official` RegistryExtensions
      - `isLatest` boolean, required — Whether this is the latest version of the server
      - `publishedAt` string, date-time, required — Timestamp when the server was first published to the registry
      - `status` 'active' | 'deprecated' | 'deleted', required — Server lifecycle status
      - `updatedAt` string, date-time — Timestamp when the server entry was last updated
  - `server` ServerJSON, required
    - `$schema` string, uri, required — JSON Schema URI for this server.json format
    - `_meta` ServerMeta
      - `io.modelcontextprotocol.registry/publisher-provided` object — Publisher-provided metadata for downstream registries
    - `description` string, required — Clear human-readable explanation of server functionality.
    - `icons` Icon[] — Optional set of sized icons that the client can display in a user interface.
      - `mimeType` 'image/png' | 'image/jpeg' | 'image/jpg' | 'image/svg+xml' | 'image/webp' — Optional MIME type override if the source MIME type is missing or generic. Must be one of: image/png, image/jpeg, image/jpg, image/svg+xml, image/webp.
      - `sizes` string[] — Optional array of strings that specify sizes at which the icon can be used. Each string should be in WxH format (e.g., '48x48', '96x96') or 'any' for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size.
      - `src` string, uri, required — A standard URI pointing to an icon resource. Must be an HTTPS URL. Consumers SHOULD take steps to ensure URLs serving icons are from the same domain as the server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain executable JavaScript.
      - `theme` 'light' | 'dark' — Optional specifier for the theme this icon is designed for. 'light' indicates the icon is designed to be used with a light background, and 'dark' indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.
    - `name` string, required — Server name in reverse-DNS format. Must contain exactly one forward slash separating namespace from server name.
    - `packages` Package[] — Array of package configurations
      - `environmentVariables` KeyValueInput[] — A mapping of environment variables to be set when running the package.
        - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
        - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
        - `description` string — A description of the input, which clients can use to provide context to the user.
        - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
        - `isRequired` boolean — Whether the input is required
        - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
        - `name` string, required — Name of the header or environment variable.
        - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
        - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
        - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
      - `fileSha256` string — SHA-256 hash of the package file for integrity verification. Required for MCPB packages and optional for other package types. Authors are responsible for generating correct SHA-256 hashes when creating server.json. If present, MCP clients must validate the downloaded file matches the hash before running packages to ensure file integrity.
      - `identifier` string, required — Package identifier - either a package name (for registries) or URL (for direct downloads)
      - `packageArguments` Argument[] — A list of arguments to be passed to the package's binary.
        - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
        - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
        - `description` string — A description of the input, which clients can use to provide context to the user.
        - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
        - `isRepeated` boolean — Whether the argument can be repeated multiple times.
        - `isRequired` boolean — Whether the input is required
        - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
        - `name` string — The flag name (for named arguments), including any leading dashes. Empty for positional arguments.
        - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
        - `type` string, required — Argument type: 'positional' or 'named'
        - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
        - `valueHint` string — An identifier for positional arguments. Used in transport URL variable substitution.
        - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
      - `registryBaseUrl` string, uri — Base URL of the package registry
      - `registryType` string, required — Registry type indicating how to download packages (e.g., 'npm', 'pypi', 'oci', 'nuget', 'mcpb')
      - `runtimeArguments` Argument[] — A list of arguments to be passed to the package's runtime command (such as docker or npx). The runtimeHint field should be provided when runtimeArguments are present.
        - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
        - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
        - `description` string — A description of the input, which clients can use to provide context to the user.
        - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
        - `isRepeated` boolean — Whether the argument can be repeated multiple times.
        - `isRequired` boolean — Whether the input is required
        - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
        - `name` string — The flag name (for named arguments), including any leading dashes. Empty for positional arguments.
        - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
        - `type` string, required — Argument type: 'positional' or 'named'
        - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
        - `valueHint` string — An identifier for positional arguments. Used in transport URL variable substitution.
        - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
      - `runtimeHint` string — A hint to help clients determine the appropriate runtime for the package. This field should be provided when runtimeArguments are present.
      - `transport` Transport, required
        - `headers` KeyValueInput[] — HTTP headers for streamable-http or sse transports
          - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
          - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
          - `description` string — A description of the input, which clients can use to provide context to the user.
          - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
          - `isRequired` boolean — Whether the input is required
          - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
          - `name` string, required — Name of the header or environment variable.
          - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
          - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
          - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
        - `type` string, required — Transport type (stdio, streamable-http, or sse)
        - `url` string — URL for streamable-http or sse transports
      - `version` string — Package version. Must be a specific version. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').
    - `remotes` Transport[] — Array of remote configurations
      - `headers` KeyValueInput[] — HTTP headers for streamable-http or sse transports
        - `choices` string[] — A list of possible values for the input. If provided, the user must select one of these values.
        - `default` string — The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the placeholder field instead.
        - `description` string — A description of the input, which clients can use to provide context to the user.
        - `format` 'string' | 'number' | 'boolean' | 'filepath' — Specifies the input format. Supported values include filepath, which should be interpreted as a file on the user's filesystem.
        - `isRequired` boolean — Whether the input is required
        - `isSecret` boolean — Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.
        - `name` string, required — Name of the header or environment variable.
        - `placeholder` string — A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.
        - `value` string — The value for the input. If this is not set, the user may be prompted to provide a value. Identifiers wrapped in {curly_braces} will be replaced with the corresponding properties from the input variables map.
        - `variables` object — A map of variable names to their values. Keys in the input value that are wrapped in {curly_braces} will be replaced with the corresponding variable values.
      - `type` string, required — Transport type (stdio, streamable-http, or sse)
      - `url` string — URL for streamable-http or sse transports
    - `repository` Repository
      - `id` string — Repository identifier from the hosting service (e.g., GitHub repo ID). Owned and determined by the source forge. Should remain stable across repository renames and may be used to detect repository resurrection attacks - if a repository is deleted and recreated, the ID should change. For GitHub, use: gh api repos/<owner>/<repo> --jq '.id'
      - `source` string — Repository hosting service identifier. Used by registries to determine validation and API access methods.
      - `subfolder` string — Optional relative path from repository root to the server location within a monorepo or nested package structure. Must be a clean relative path.
      - `url` string, uri — Repository URL for browsing source code. Should support both web browsing and git clone operations.
    - `title` string — Optional human-readable title or display name for the MCP server.
    - `version` string, required — Version string for this server. SHOULD follow semantic versioning.
    - `websiteUrl` string, uri — Optional URL to the server's homepage, documentation, or project website.

## Other responses

- `default` — Error

## Changes

- **2026-03-02** `cd40eb4cf442` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentregistry-dev/apis/agentregistry/changes/v0/servers/post.md)

---

[API](https://skmtc.dev/agentregistry-dev/apis/agentregistry.md) · [All operations](https://skmtc.dev/agentregistry-dev/apis/agentregistry/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentregistry-dev/agentregistry/revisions/cd40eb4cf442/schema)
