mcp-system-info
A simple Model Context Protocol server that provides system information and public IP lookup tools for Claude Code.
README
MCP System Info Server
A simple Model Context Protocol server that provides system information and public IP lookup tools for Claude Code.
Features
Tools
get_public_ip: Get your public IP address with geolocation info (country, city, ISP, timezone)get_system_info: Get local system information (OS, CPU, memory, uptime)
Resources
system://info: Static resource with current system information
Installation
npm install
npm run build
Usage with Claude Code
Via CLI (recommended)
claude mcp add system-info node /path/to/mcp-demo/dist/index.js
Manual configuration
Add to your ~/.claude.json:
{
"mcpServers": {
"system-info": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/mcp-demo/dist/index.js"],
"env": {}
}
}
}
Reload your IDE/Claude Code, and you can now ask:
- "What's my public IP?"
- "Give me system information"
- "Where am I connected from?"
How it works
┌─────────────┐ JSON-RPC ┌─────────────┐
│ Claude Code │ ────────────────────────> │ MCP Server │
│ (Client) │ stdio (stdin/stdout) │ (this repo) │
│ │ <──────────────────────── │ │
└─────────────┘ └─────────────┘
│
↓
┌──────────────┐
│ ipify API │
│ ip-api.com │
│ Node.js os │
└──────────────┘
The server implements the MCP protocol to:
- Expose available tools via
tools/list - Execute tool calls via
tools/call - Expose resources via
resources/listandresources/read
Development
Project structure
mcp-demo/
├── src/
│ └── index.ts # MCP server implementation
├── dist/ # Compiled JavaScript
├── package.json
└── tsconfig.json
Modifying the server
- Edit
src/index.ts - Run
npm run build - Reload Claude Code (Cmd+Shift+P → "Reload Window")
Testing manually
# List available tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | node dist/index.js
# Call a tool
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_public_ip","arguments":{}}}' | node dist/index.js
Dependencies
@modelcontextprotocol/sdk: Official MCP SDKaxios: HTTP client for API callsos: Native Node.js module for system info
Extending
To add a new tool:
- Add tool definition in
ListToolsRequestSchemahandler - Implement tool logic in
CallToolRequestSchemahandler
Example:
// 1. Add to tool list
{
name: "get_weather",
description: "Get current weather",
inputSchema: {
type: "object",
properties: {
city: { type: "string" }
},
required: ["city"]
}
}
// 2. Handle the call
if (name === "get_weather") {
const { city } = request.params.arguments;
const response = await axios.get(`https://api.weather.com/${city}`);
return {
content: [{ type: "text", text: JSON.stringify(response.data) }]
};
}
License
MIT
Resources
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.