Server data from the Official MCP Registry
Production-grade MCP Server Template for TypeScript and Node.js.
Production-grade MCP Server Template for TypeScript and Node.js.
This is a well-structured, production-ready MCP server template with strong security fundamentals. It demonstrates proper authentication patterns via environment variables, input validation using Zod, and clean separation of concerns. No critical vulnerabilities or malicious patterns detected. Minor observations include broad exception handling and lack of explicit permission scoping in code, but these are typical for a template and do not pose material security risks. Supply chain analysis found 6 known vulnerabilities in dependencies (2 critical, 3 high severity). Package verification found 1 issue.
7 files analyzed ยท 10 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-qmmughal-mcp-server-template": {
"args": [
"-y",
"@qmmughal/mcp-server-template"
],
"command": "npx"
}
}
}From the project's GitHub README.
A production-ready, enterprise-grade template for building Model Context Protocol (MCP) servers in TypeScript and Node.js. Designed for scalability, type safety, and seamless integration with AI agents like Claude Desktop and Cursor.
The Model Context Protocol (MCP) standardizes how AI models interact with local and remote resources. This template provides a robust foundation for building your own custom MCP servers, eliminating boilerplate and enforcing best practices.
dist/index.js), eliminating the need to deploy node_modules.pino logger writing safely to stderr, preserving the integrity of the stdout JSON-RPC transport required by MCP.Clone the repository and install dependencies:
git clone https://github.com/qmmughal/mcp-server-template.git
cd mcp-server-template
npm install
Copy the example environment file and configure your variables:
cp .env.example .env
Start the server in watch mode for local development:
npm run dev
Run the test suite:
npm test
Verify typings:
npm run typecheck
Bundle the server into a single, optimized executable:
npm run build
The output will be generated at dist/index.js.
To connect this server to the Claude Desktop app, edit your Claude configuration file (usually found at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on Mac):
{
"mcpServers": {
"enterprise-template-server": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-template/dist/index.js"],
"env": {
"LOG_LEVEL": "info",
"EXAMPLE_API_KEY": "your_api_key_here"
}
}
}
}
In Cursor, navigate to Settings -> Features -> MCP and add a new MCP server:
commandnode /absolute/path/to/mcp-server-template/dist/index.jssrc/index.ts: Application entrypoint, capability registration, and stdio connection setup.src/tools/: Definitions and JSON schemas for MCP Tools (actions the AI can take).src/resources/: Dynamic resources via URI templating (data the AI can read).src/prompts/: Reusable agent prompt templates.src/services/: Core business logic, keeping protocol handlers thin and testable.src/utils/errors.ts: Standardized error handling aligned with MCP error codes.package.json is publish-ready (scoped name @qmmughal/mcp-server-template, license, repository, keywords), and server.json + .github/workflows/publish-mcp.yml are wired up to publish to both npm and the MCP Registry automatically whenever a v* tag is pushed:
git tag v1.0.0
git push origin v1.0.0
The workflow needs one repo secret before it can run: NPM_TOKEN (an npm automation token with publish rights to the @qmmughal scope). MCP Registry auth uses GitHub OIDC, so no extra secret is needed there.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is MIT licensed.
Be the first to review this server!
by Modelcontextprotocol ยท Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.