ipmentor

IPv4 networking toolkit with verified calculations for AI tutoring systems. MCP-enabled for cost-effective educational AI.

https://github.com/davidlms/ipmentor

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.3%) to scientific vocabulary

Keywords

gradio hackathon ip mcp mistral networking subnetting
Last synced: 6 months ago · JSON representation ·

Repository

IPv4 networking toolkit with verified calculations for AI tutoring systems. MCP-enabled for cost-effective educational AI.

Basic Info
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
gradio hackathon ip mcp mistral networking subnetting
Created 9 months ago · Last pushed 8 months ago
Metadata Files
Readme Contributing License Citation

README.md

IPMentor Header

Demo Space Chatbot Demo MIT License

IPMentor

IPMentor is an IPv4 networking toolkit designed to serve as verified computational tools for AI tutoring systems. While modern LLMs handle many networking calculations reasonably well, IPMentor ensures accuracy and enables cost-effective tutoring by allowing smaller, specialized models to focus on pedagogy while delegating complex subnet mathematics to dedicated, verified tools.

Built for the Gradio MCP Hackathon 2025, IPMentor demonstrates how the Model Context Protocol (MCP) can bridge AI tutoring systems with specialized computational tools, creating more reliable and affordable educational experiences.

🔗 Try it now:
Live Demo - Interactive web interface (is a MCP Server!)
AI Chatbot Demo - Conversational AI using IPMentor tools with Mistral Small 3.1 24B as LLM

Report Bug · Request Feature

Demo GIF

Why IPMentor?

The Problem with AI-Only Network Tutoring

Current AI tutoring approaches in networking education face a fundamental challenge: while large language models can perform many calculations, they occasionally make errors in complex subnet mathematics. More importantly, using powerful models for every calculation is expensive and unnecessary when the goal is to teach networking concepts rather than arithmetic.

The IPMentor Solution

IPMentor addresses these challenges by providing:

  • Verified Calculations: All subnet mathematics is performed by dedicated algorithms, eliminating computational errors.
  • Cost-Effective Tutoring: Smaller, efficient AI models can handle educational interactions while delegating calculations to IPMentor.
  • Reliable Foundation: Teachers and students can trust that the underlying mathematics is always correct.

This approach follows the principle of computational separation of concerns - let AI models excel at explanation and pedagogy, while specialized tools handle precise calculations.

Key Features

  • 🔍 IP Analysis: Complete IPv4 address analysis with subnet mask support (decimal, binary, and CIDR formats).
  • 🧮 Subnet Calculator: Advanced subnet division using multiple methods:
    • Maximum subnets division.
    • Maximum hosts per subnet division.
    • Variable Length Subnet Masking (VLSM).
  • 📊 Network Diagrams: Automatic generation of basic network subnets topology diagrams with D2.
  • 🤖 MCP Integration: Native Model Context Protocol support for AI agent connectivity.
  • 🎓 Educational Focus: Designed specifically for networking education and tutoring scenarios.

How It Works

IPMentor operates as both a standalone web application and an MCP server, making it accessible to both human learners and AI tutoring systems:

  1. Web Interface: Students and teachers can use the interactive Gradio interface for direct calculations.
  2. MCP Tools: AI agents connect via MCP to access three core functions:
    • ip_info - Analyze IPv4 addresses and subnet masks.
    • subnet_calculator - Perform subnet calculations with multiple division methods.
    • generate_diagram - Create visual network diagrams.
  3. REST API: Direct API access to all tools for integration into custom applications and educational platforms.
  4. Verified Results: All calculations use proven algorithms to ensure mathematical accuracy.

Quick Start

For Direct Use

Visit the live demo to try IPMentor's tools immediately through the web interface.

For Local Development

```bash

Clone the repository

git clone https://github.com/yourusername/ipmentor.git cd ipmentor

Install dependencies

pip install -r requirements.txt

Run the application

python app.py ```

The application will be available at http://localhost:7860 with MCP server enabled at /gradio_api/mcp/sse.

For AI Integration

See the chatbot demo for an example of how AI agents can use IPMentor tools through MCP for conversational network assistance. You could use any MCP Client as Claude Desktop, Cursor or Cline.

Integration with LearnMCP-xAPI

IPMentor complements LearnMCP-xAPI to create comprehensive AI tutoring systems:

  • IPMentor: Provides verified computational tools for networking calculations.
  • LearnMCP-xAPI: Maintains persistent learning records to track student progress.

Together, they enable AI tutors that can both perform accurate calculations and adapt to individual student learning patterns over time.

Technical Architecture

IPMentor is built with:

  • Python & Gradio: Web interface and MCP server foundation.
  • IPv4 Calculations: Native Python algorithms for subnet mathematics.
  • D2 Integration: Network diagram generation using the D2 language.
  • MCP Protocol: Standard interface for AI agent integration.
  • Pydantic Validation: Robust input validation and error handling.

Contributing

Contributions are welcome! Whether you're improving calculations, enhancing visualizations, or adding new educational features, your input helps make networking education more effective.

Please see our contribution guidelines and feel free to open issues or pull requests.

License

IPMentor is released under the MIT License. You are free to use, modify, and distribute the code for both educational and commercial purposes.


Built with ❤️ for the Gradio MCP Hackathon - Making AI tutoring more reliable, one subnet at a time.

Owner

  • Name: David
  • Login: DavidLMS
  • Kind: user
  • Company: IES Rafael Alberti

Profesor de informática. Ciberseguridad, Inteligencia Artificial, Realidad Virtual, Desarrollo Multiplataforma, y a estas alturas lo que pida la vida.

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Romero Santos"
  given-names: "David"
title: "IPMentor: IPv4 networking toolkit for AI tutoring systems"
date-released: 2025-06-10
url: "https://github.com/DavidLMS/ipmentor"
repository-code: "https://github.com/DavidLMS/ipmentor"
abstract: "IPMentor provides verified IPv4 networking calculation tools designed for AI tutoring systems. Built with MCP (Model Context Protocol) support, it enables cost-effective educational AI by allowing smaller models to focus on pedagogy while delegating precise subnet calculations to dedicated, verified algorithms."
keywords:
  - ipv4
  - networking
  - subnet-calculations
  - ai-tutoring
  - model-context-protocol
  - mcp
  - educational-technology
  - gradio
  - network-diagrams
  - cidr
license: MIT

GitHub Events

Total
  • Push event: 1
  • Public event: 1
Last Year
  • Push event: 1
  • Public event: 1

Dependencies

requirements.txt pypi
  • gradio >=4.44.0
  • python-dotenv >=1.0.0