All StepsStep 6 of 6
6

Deployment & Distribution

Once your MCP server is ready, you can publish it for others to use.

Publishing to NPM

Deployment
// package.json
{
  "name": "my-mcp-server",
  "version": "1.0.0",
  "bin": { "my-mcp-server": "./dist/index.js" },
  "scripts": {
    "build": "tsc",
    "prepublishOnly": "npm run build"
  }
}

// Then publish:
// npm publish

// Users can install and run with:
// npx my-mcp-server

// Claude Desktop config (~/.claude/claude_desktop_config.json):
{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["my-mcp-server"]
    }
  }
}