mcp-publish
Skill41 starsChanged 12 months agoMITView on GitHub
Guide for publishing MCP servers to NPM (TypeScript/Node.js) or UVX (Python). Use when preparing MCP servers for public distribution, validating package configuration, or walking through the npm publish or uvx/PyPI publishing workflow. Triggers include requests to publish, release, or distribute MCP servers.
- Installs packages
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- readme-generatorSkill
- repo-sweepSkill
- minecraft-devSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 23
If both exist, ask which runtime the server targets.
- Distinctive: line 45
After running validation, check that the package manifest matches the git remote:
- Distinctive: line 49
If mismatch, confirm with user which is correct before proceeding
- Distinctive: line 50
Update the manifest file if needed
- Distinctive: line 54
Before publishing, verify and update the README installation instructions.
- Distinctive: line 70
Update README sections automatically if any methods are missing.
- Distinctive: line 74
Verify before any publish:
- Distinctive: line 79
No secrets in committed files
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Server Publishing
Guides publishing MCP servers to NPM or PyPI/UVX.
Workflow
- Detect server type
- Run validation script
- Fix issues
- Publish
Type Detection
Check project root:
package.json-> TypeScript/Node.js -> See references/npm.mdpyproject.toml-> Python -> See references/uvx.md
If both exist, ask which runtime the server targets.
Validation
Run before publishing:
TypeScript/Node.js:
python <skill-path>/scripts/validate_npm.py <project-path>Python:
python <skill-path>/scripts/validate_uvx.py <project-path>Replace <skill-path> with this skill's location and <project-path> with the MCP server directory.
Fix all errors before proceeding to publish.
Repository URL Validation
After running validation, check that the package manifest matches the git remote:
- Get the configured git remote:
git remote get-url origin - Compare with repository field in package.json or pyproject.toml
- If mismatch, confirm with user which is correct before proceeding
- Update the manifest file if needed
README Installation Section
Before publishing, verify and update the README installation instructions.
Validation checks for all four installation methods:
TypeScript/Node.js:
- npx command:
npx @scope/package-name - Global install:
npm install -g @scope/package-name - Claude Desktop config (claude_desktop_config.json with mcpServers)
- Claude Code CLI:
claude mcp add
Python:
- uvx command:
uvx package-name - Pip install:
pip install package-name - Claude Desktop config (claude_desktop_config.json with mcpServers)
- Claude Code CLI:
claude mcp add
Update README sections automatically if any methods are missing.
Pre-Publish Checklist
Verify before any publish:
- Version incremented from last release
- README.md exists with server description
- LICENSE file present
- No secrets in committed files
- Build artifacts excluded via .gitignore
- Server runs locally without errors
- Repository URL in manifest matches git remote
- README installation instructions are correct
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

