what is Subnet Calculator MCP Server?
Subnet Calculator MCP Server is a tool that provides a simple Model Context Protocol (MCP) server for calculating subnet details based on CIDR (Classless Inter-Domain Routing) notation.
how to use Subnet Calculator MCP Server?
To use the Subnet Calculator, clone the repository, install the required dependencies, and run the MCP server using Python. You can then add the server to your MCP client by following specific configuration steps.
key features of Subnet Calculator MCP Server?
- Calculates subnet details for a given CIDR.
- Provides network address, broadcast address, netmask, wildcard mask, usable host range, and number of usable hosts.
- Runs as an MCP server with Server-Sent Events (SSE) transport.
use cases of Subnet Calculator MCP Server?
- Network administrators can quickly calculate subnet details for network planning.
- Developers can integrate subnet calculation functionality into their applications.
- Educational purposes for teaching networking concepts.
FAQ from Subnet Calculator MCP Server?
- What is the required Python version?
Python 3.7 or higher is required to run the server.
- How do I install the necessary dependencies?
You can install the dependencies using the command:
pip install fastmcp mcp[cli]
.
- Can I use this server with different MCP clients?
Yes! The server can be integrated with various MCP clients by following the provided configuration steps.
Subnet Calculator MCP Server
This project provides a simple MCP (Model Context Protocol) server for calculating subnet details based on a given CIDR (Classless Inter-Domain Routing) notation. It uses the FastMCP library to expose the subnet calculation functionality as a tool.
Features
- Calculate subnet details for a given CIDR.
- Provides:
- Network address
- Broadcast address
- Netmask
- Wildcard mask
- Usable host range
- Number of usable hosts
- Runs as an MCP server with SSE (Server-Sent Events) transport.
Requirements
- Python 3.7+
- fastmcp library
Installation
- Clone the repository or copy the script.
- Install the required dependencies:
pip install fastmcp mcp[cli]
Usage
THis MCP runs with SSE transport mode.
Run the MCP server:
python main.py
How to add this Server to your MCP Client
Goose MCP Client
- Click Menu ("..." icon) and select Advanced settings:
- Go extentions section
- Select "Add custom extentions"
- Select Server-Sent Events as Type
- Select a random ID
- Select Name for the MCP Server
- Sleect Description
- Enter URI : https://mcp-subnet-calculator.mteke.com/sse
- Click Add button
Now the MCP Server(extention is added and enabled)
Now the MCP server is activated:
You can watch the video to demonstrate how to enable mcp server on Goose Client App:
Claude Desktop MCP Client
- Select Claude Desktop Settings
- Select Developer and Edit config
- Change claude_desktop_config.json content to below
{
"mcpServers": {
"mcp-subnet-calculator-sse": {
"command": "npx",
"args": [
"-y",
"supergateway",
"--sse",
"https://mcp-subnet-calculator.mteke.com/sse"
]
}
}
}
- Close Claude Desktop App completely and restart it
You can watch the video to demonstrate how to enable mcp server on Claude Desktop Client App: