Back to Home
ahnafyy icon

create-mcp-express

Verified Safe

by ahnafyy

Overview

Provides a Model Context Protocol (MCP) server template with Express.js for building AI-powered tools and resources.

Installation

Run Command
npm run dev

Environment 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

Stats

Interest Score33
Security Score8
Cost ClassLow
Avg Tokens50
Stars1
Forks0
Last Update2025-11-23

Tags

mcpexpresstypescriptapiai-toolsservertemplate