Versioning Published MCP Servers
Separate the catalog release from the artifact version
The top-level version identifies one Registry publication. Each package version identifies an artifact that the client installs. Keeping them aligned is useful for a single-package server, but a metadata-only fix or a server distributed through several ecosystems can require different values. Record that distinction before publishing, because the reference makes published metadata immutable apart from the status behavior described for aggregators.
| Change | Version decision | Read-back check |
|---|---|---|
| New single-package build | Usually align Registry and package versions | Selected package is the intended release |
| Metadata-only correction | Choose a fresh Registry version; keep the artifact if unchanged | New record points to the existing artifact |
| Multi-package release | Use one overall Registry version and explicit per-package versions | Each ecosystem points to the reviewed package |
| Remote API change | Coordinate metadata with the deployed API | The declared URL serves the intended API |
Do not use a range such as ^1.2.3 as a Registry publication version: one record needs a specific identity. Avoid mixing version styles casually. Under the attributed rules, a string that fails semantic-version parsing is treated as latest, so a date with leading zeros can behave differently from the semver-like form a maintainer expected.
A metadata correction using 1.2.3-1 can retain package 1.2.3, but that prerelease sorts before the stable 1.2.3. Publishing it later does not make it latest. Verify both the exact new record and the latest selection; a successful publish proves only the first operation completed.
For recovery, keep the previous artifact and metadata mapping in the release record. A new correcting publication is different from changing the executable version a client already pinned. Downstream catalogs should also refresh mutable status, as explained in Registry aggregators. These examples are decision guidance from the pinned reference, not a claim that the site tested the live Registry’s sorting behavior.
MCP servers MUST define a version string in server.json. For example:
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.username/email-integration-mcp",
"title": "Email Integration",
"description": "Send emails and manage email accounts",
"version": "1.0.0",
"packages": [
{
"registryType": "npm",
"identifier": "@username/email-integration-mcp",
"version": "1.0.0",
"transport": {
"type": "stdio"
}
}
]
}The version string MUST be unique for each publication of the server. Once published, the version string (and other metadata) cannot be changed.
Version Format
The MCP Registry recommends semantic versioning, but supports any version string format. When a server is published, the MCP Registry will attempt to parse its version as a semantic version string for sorting purposes, and will mark the version as “latest” if appropriate. If parsing fails, the version will always be marked as “latest”.
As an error prevention mechanism, the MCP Registry prohibits version strings that appear to refer to ranges of versions.
| Example | Type | Guidance |
|---|---|---|
1.0.0 | semantic version | Recommended |
2.1.3-alpha | semantic prerelease | Recommended |
1.0.0-beta.1 | semantic prerelease | Recommended |
3.0.0-rc.2 | semantic prerelease | Recommended |
2025.11.25 | semantic date | Recommended |
2025.6.18 | semantic date | Recommended (⚠️Caution!⚠️) |
2025.06.18 | non-semantic date | Allowed (⚠️Caution!⚠️) |
2025-06-18 | non-semantic date | Allowed |
v1.0 | prefixed version | Allowed |
^1.2.3 | version range | Prohibited |
~1.2.3 | version range | Prohibited |
>=1.2.3 | version range | Prohibited |
<=1.2.3 | version range | Prohibited |
>1.2.3 | version range | Prohibited |
<1.2.3 | version range | Prohibited |
1.x | version range | Prohibited |
1.2.* | version range | Prohibited |
1 - 2 | version range | Prohibited |
1.2 || 1.3 | version range | Prohibited |
Best Practices
Use Semantic Versioning
Use semantic versioning for version strings.
Align Server Version with Package Version
For local servers, align the server version with the underlying package version in order to prevent confusion:
{
"version": "1.2.3",
"packages": [
{
"registryType": "npm",
"identifier": "@my-username/my-server",
"version": "1.2.3",
"transport": {
"type": "stdio"
}
}
]
}If there are multiple underlying packages, use the server version to indicate the overall release version:
{
"version": "1.3.0",
"packages": [
{
"registryType": "npm",
"identifier": "@my-username/my-server",
"version": "1.3.0",
"transport": {
"type": "stdio"
}
},
{
"registryType": "nuget",
"identifier": "MyUsername.MyServer",
"version": "1.0.0",
"transport": {
"type": "stdio"
}
}
]
}Align Server Version with Remote API Version
For remote servers with an API version, the server version should align with the API version:
{
"version": "2.1.0",
"remotes": [
{
"type": "streamable-http",
"url": "https://api.myservice.com/mcp/v2.1"
}
]
}Use Prerelease Versions for Registry-only Updates
If you anticipate publishing a server multiple times without changing the underlying package or remote URL — for example, to update other parts of the metadata — use semantic prerelease versions:
{
"version": "1.2.3-1",
"packages": [
{
"registryType": "npm",
"identifier": "@my-username/my-server",
"version": "1.2.3",
"transport": {
"type": "stdio"
}
}
]
}1.2.3-1 are sorted before regular semantic versions such as 1.2.3. Therefore, if you publish a prerelease version after its corresponding regular version, the prerelease version will not be marked as “latest”.Aggregator Recommendations
MCP Registry aggregators SHOULD:
- Attempt to interpret versions as semantic versions when possible
- Use the following version comparison rules:
- If one version is marked as “latest”, treat it as later
- If both versions are valid semantic versions, use semantic versioning comparison rules
- If neither versions are valid semantic versions, compare published timestamp
- If one version is a valid semantic version and the other is not, treat the semantic version as later