Publishing Packages
Learn how to create and publish MCP server packages to the registry.
1. Register an account
Before publishing, you need a registry account:
mcpak register <username> 2. Create mcpak.json
Run mcpak init or create mcpak.json manually:
{
"name": "my-mcp-server",
"version": "1.0.0",
"description": "My awesome MCP server",
"mcpServer": {
"command": "node",
"args": ["server.js"],
"env": {
"PORT": "3000"
}
}
} 3. Publish
From the directory containing your mcpak.json:
mcpak publish The CLI packages your project into a tarball, computes a SHA-256 checksum, and uploads it to the registry. The first user to publish a package becomes its owner.
4. Update versions
To publish a new version, update the version field in mcpak.json and run mcpak publish again. Only the package owner can publish new versions.