Hostname MCP Server
A lightweight server for hostname detection and system context.
Hostname MCP Server
A lightweight Model Context Protocol (MCP) server focused on hostname detection with system information. Perfect for AI assistants to automatically identify which machine they're working with.
Generated by Claude Sonnet 4, directed by leependu.
Features
🔒 Secure: Only reads system information, never executes arbitrary commands
🏷️ Focused: Hostname detection first, system specs second
⚡ Lightweight: Minimal dependencies and fast startup
🎯 Purpose-built: Designed specifically for Claude Desktop workflow optimization
Tools Provided
get_hostname
Returns just the system hostname - perfect for quick machine identification.
get_system_info
Comprehensive system information including:
- Hostname and platform details
- CPU count and memory information
- OS version and architecture
- System uptime
- User information
Installation
- Install dependencies:
npm install
- Build the TypeScript:
npm run build
- Test the server:
npm start
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"hostname": {
"command": "node",
"args": [
"/path/to/hostname-mcp/build/index.js"
]
}
}
}
Development
npm run build- Build TypeScript to JavaScriptnpm run dev- Watch mode for developmentnpm start- Run the built server
Security
This server is designed to be secure by default:
- Only reads system information using Node.js
osmodule - No arbitrary command execution
- No environment variable exposure
- No sensitive data access
Version 2.0 Changes
- Removed
get_environment_context: Eliminated potential security risk of exposing environment variables - Removed
get_quick_summary: Redundant information already available in other tools - Focused approach: Now provides just hostname and system info - clean and secure
Project Context
Created as part of a workflow optimization to automatically identify which machine Claude is working with, eliminating the need to manually specify the computer at the start of each conversation.
Perfect for users with multiple development machines who want streamlined AI assistance.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Remote MCP Server on Cloudflare
A template for deploying a remote MCP server on Cloudflare Workers, allowing for custom tool integration.
Shell Command MCP Server
Execute pre-configured and secure shell commands via a Go-based MCP server.
MCP Image Extractor
Extracts images from files, URLs, or base64 strings and converts them to base64 for LLM analysis.
Perfetto
Turn natural language into powerful Perfetto trace analysis. Quickly explain jank, diagnose ANRs, spot CPU hot threads, uncover lock contention, and find memory leaks.
A11y MCP Server
Perform accessibility audits on webpages using the axe-core engine to identify and help fix a11y issues.
Model Context Protocol servers
A collection of reference implementations for the Model Context Protocol (MCP), showcasing servers implemented with TypeScript and Python SDKs.
Second Opinion MCP Server
An AI-powered coding assistant that combines insights from Gemini, Stack Overflow, and Perplexity AI to help solve programming problems.
Jupyter Notebook MCP Server
Interact with Jupyter notebooks, allowing for code execution, cell manipulation, and notebook management.
GameCode MCP2
A Model Context Protocol (MCP) server for tool integration, configured using a tools.yaml file.
Codex MCP Wrapper
An MCP server that wraps the OpenAI Codex CLI, exposing its functionality through the MCP API.