
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mcp-server-node
Advanced tools
A comprehensive MCP (Model Context Protocol) server that exposes multiple resource types including file system, system information, and generated content
A comprehensive MCP (Model Context Protocol) server implementation in Node.js that exposes multiple resource types including file system information, system details, and generated content.
This MCP server provides access to various types of resources without requiring any external APIs:
file://current-directory) - Lists files and directories in the current working directory with metadatafile://package-info) - Displays package.json information if availablesystem://info) - Comprehensive system information including OS, architecture, Node.js version, memory usage, CPU count, load average, and user infosystem://env) - Non-sensitive environment variables (automatically filters out passwords, secrets, keys, and tokens)generated://lorem) - Dynamically generated Lorem Ipsum placeholder text with random paragraph and sentence countsgenerated://data) - Generated sample user data in JSON format with realistic fake dataconfig://mcp-server) - Current server configuration, capabilities, and metadatanpx mcp-server-node
npm install -g mcp-server-node
mcp-server-node
npm install mcp-server-node
npx mcp-server-node
The server communicates via JSON-RPC over stdin/stdout following the Model Context Protocol specification.
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {}
}
{
"jsonrpc": "2.0",
"id": 2,
"method": "resources/list",
"params": {}
}
{
"jsonrpc": "2.0",
"id": 3,
"method": "resources/read",
"params": {
"uri": "system://info"
}
}
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"resources": [
{
"uri": "file://current-directory",
"name": "Current Directory Listing",
"description": "Lists files and directories in the current working directory",
"mimeType": "application/json"
},
{
"uri": "system://info",
"name": "System Information",
"description": "Basic system information including OS, architecture, and Node.js version",
"mimeType": "application/json"
}
]
}
}
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"contents": [
{
"uri": "system://info",
"mimeType": "application/json",
"text": "{\n \"platform\": \"darwin\",\n \"architecture\": \"arm64\",\n \"nodeVersion\": \"v18.17.0\",\n \"hostname\": \"example-host\",\n \"uptime\": 12345,\n \"totalMemory\": 17179869184,\n \"freeMemory\": 8589934592,\n \"cpuCount\": 8,\n \"loadAverage\": [1.5, 1.8, 2.1],\n \"timestamp\": \"2024-01-01T12:00:00.000Z\"\n}"
}
]
}
}
To use this MCP server with Claude Desktop, add it to your Claude Desktop configuration:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-node": {
"command": "npx",
"args": ["mcp-server-node"]
}
}
}
Edit %APPDATA%\\Claude\\claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-node": {
"command": "npx",
"args": ["mcp-server-node"]
}
}
}
You can test the server locally using command line tools:
# Test initialization
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {}}' | npx mcp-server-node
# Test resource listing
echo '{"jsonrpc": "2.0", "id": 2, "method": "resources/list", "params": {}}' | npx mcp-server-node
# Test reading system info
echo '{"jsonrpc": "2.0", "id": 3, "method": "resources/read", "params": {"uri": "system://info"}}' | npx mcp-server-node
# Test reading generated content
echo '{"jsonrpc": "2.0", "id": 4, "method": "resources/read", "params": {"uri": "generated://lorem"}}' | npx mcp-server-node
The server logs activities to mcp_server_node.log in the current working directory. This keeps stdout clean for MCP protocol communication while providing debugging information.
This is a simple, self-contained MCP server implementation. Feel free to fork and modify for your specific use cases.
MIT License - see the package.json file for details.
FAQs
A comprehensive MCP (Model Context Protocol) server that exposes multiple resource types including file system, system information, and generated content
The npm package mcp-server-node receives a total of 11 weekly downloads. As such, mcp-server-node popularity was classified as not popular.
We found that mcp-server-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.