create-mcp-express
Verified Safeby ahnafyy
Overview
Provides a Model Context Protocol (MCP) server template with Express.js for building AI-powered tools and resources.
Installation
npm run devEnvironment Variables
- SERVER_NAME
- SERVER_VERSION
- PORT
- NODE_ENV
- LOG_LEVEL
- LOG_COLORS
- MCP_JSON_RESPONSE
Security Notes
The core server template itself does not use 'eval' or direct 'exec' functions. Configuration is loaded from environment variables, which is a good practice. The `requestLogger` middleware logs `req.body` and `req.query` at debug level, which could potentially expose sensitive data if debug logging is enabled in a production environment without careful consideration. The MCP request handling includes a `try-catch` block that prevents server crashes for individual malformed requests, returning a 500 Internal Server Error. The scaffolding tool `create-mcp-express` uses `child_process.execSync` for package installation and fetching git user config, which is generally acceptable for a local CLI tool but not part of the runtime server.
Similar Servers
frontmcp
FrontMCP is a TypeScript-first framework for building Model Context Protocol (MCP) servers, enabling AI models to interact with external systems through typed tools, resources, and prompts, including dynamic UI rendering and robust authentication.
mcp-kit
A CLI tool for scaffolding Model Context Protocol (MCP) applications, either as servers providing tools, resources, and prompts, or clients consuming them.
template-mcp-server
Provides a CLI tool and template to quickly get started building a Model Context Protocol (MCP) server using FastMCP, supporting both stdio and HTTP transports.
mcp-typescript-template
This server acts as a template for building remote Model Context Protocol (MCP) servers using TypeScript, handling MCP tool registration and session management over HTTP.