This guide walks through publishing the New Relic MCP server to various platforms.
- Go to https://github.com/new
- Create repository:
cloudbring/newrelic-mcp - Make it public
- DON'T initialize with README (we already have one)
# Remove old remote
git remote remove gh
# Add new remote
git remote add origin git@github.com:cloudbring/newrelic-mcp.git
# Push all branches and tags
git push -u origin main
git push --tags- Go to Settings → Actions → General
- Set "Workflow permissions" to "Read and write permissions"
- Save
- Get NPM token (see section 2)
- Go to Settings → Secrets and variables → Actions
- Add new secret:
NPM_TOKENwith your npm token
- Create NPM account at https://www.npmjs.com/signup
- Login locally:
npm login# Generate automation token for CI/CD
npm token create --read-only=false --cidr=0.0.0.0/0Save this token for GitHub Actions (NPM_TOKEN secret)
# Ensure package is built
npm run build
# Test locally that it works
node dist/server.js
# Make bin executable
chmod +x dist/server.jsEdit src/server.ts and add at the very top:
#!/usr/bin/env nodeThen rebuild:
npm run build# Dry run to see what will be published
npm publish --dry-run
# Publish for real
npm publish --access public# Test global installation
npm install -g newrelic-mcp
newrelic-mcp
# Test npx
npx newrelic-mcp- Published NPM package
- GitHub repository set up
-
Fill in the form:
- Name: New Relic MCP
- Package Name: newrelic-mcp
- Description: Model Context Protocol server for New Relic observability platform
- Repository: https://github.com/cloudbring/newrelic-mcp
- NPM Package: https://www.npmjs.com/package/newrelic-mcp
- Author: @cloudbring
- Categories: Select "Monitoring", "DevOps", "Observability"
- License: MIT
-
Provide configuration example:
{
"mcpServers": {
"newrelic": {
"command": "npx",
"args": ["-y", "newrelic-mcp"],
"env": {
"NEW_RELIC_API_KEY": "your-api-key",
"NEW_RELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}Users can install via Smithery:
npx @smithery/cli install newrelic-mcp --client claudeSubmit at: https://github.com/modelcontextprotocol/mcp-hub
- Fork the repository
- Add your server to
servers.json - Submit PR
Example entry:
{
"name": "newrelic-mcp",
"description": "New Relic observability platform integration",
"author": "cloudbring",
"repository": "https://github.com/cloudbring/newrelic-mcp",
"npm": "newrelic-mcp",
"categories": ["monitoring", "observability", "devops"]
}Submit PR to: https://github.com/punkpeye/awesome-mcp-servers
Add to appropriate section:
- [New Relic MCP](https://github.com/cloudbring/newrelic-mcp) - Query metrics, manage alerts, and monitor applications in New RelicWhen Anthropic launches an app store, ensure you're registered.
Use semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR: Breaking changes
- MINOR: New features (backwards compatible)
- PATCH: Bug fixes
# Update version
npm version patch # or minor/major
# This creates a git tag
git push origin main --tags
# GitHub Actions will auto-publish to NPM- Write blog post/tweet announcing the MCP server
- Include:
- What it does
- Installation instructions
- Example use cases
- Link to GitHub
- Anthropic Discord (if you have access)
- r/LocalLLaMA subreddit
- r/OpenAI subreddit
- Hacker News (Show HN post)
- New Relic community forums (with disclaimer about being unofficial)
- MCP GitHub Discussions: https://github.com/modelcontextprotocol/specification/discussions
Consider creating:
- GitHub Pages site from
docs/folder - Video tutorial
- Example notebooks
Check downloads at: https://www.npmjs.com/package/newrelic-mcp
Monitor:
- Stars
- Issues
- Pull requests
- Fork count
- Enable GitHub Discussions
- Monitor issues for bug reports
- Check Smithery reviews
Before publishing, ensure:
- All tests pass (
npm test) - Coverage is >90% (
npm run test:coverage) - No linting errors (
npm run lint) - Documentation is complete
-
.env.examplehas clear instructions - README has installation for all platforms
- Package.json has all required fields
- GitHub Actions CI is set up
- Shebang added to server.ts
- Build works (
npm run build) - Local testing works (
npx .in project root)
402 Payment Required:
- Package name might be taken or reserved
- Try different name or namespace (@cloudbring/newrelic-mcp)
403 Forbidden:
- Not logged in:
npm login - No publish access: check npm account
E404 Not Found:
- For scoped packages, use:
npm publish --access public
- Ensure NPM package is published first
- Verify GitHub repo is public
- Check smithery.json is valid
- Check NPM_TOKEN secret is set
- Ensure Node version compatibility
- Review workflow logs
For issues or questions:
- GitHub Issues: https://github.com/cloudbring/newrelic-mcp/issues
- Email: [your email]
- Twitter: @cloudbring