Skip to main content

MCP server for neural network training and experimentation

Project description

scicomp-neural-mcp

mcp-name: io.github.andylbrummer/neural-mcp

MCP server for neural network training and experimentation.

Overview

This server provides tools for building, training, and analyzing neural networks:

  • Model building - Pre-trained models (ResNet, MobileNet) and custom architectures
  • Dataset loading - CIFAR-10, MNIST, ImageNet datasets with standard preprocessing
  • Training - Full training loops with configurable learning rates and batch sizes
  • Evaluation - Model evaluation, metrics computation, and analysis
  • Hyperparameter tuning - Automated hyperparameter search
  • Export - Export models to ONNX and TorchScript formats
  • GPU acceleration - Optional CUDA acceleration for training

Installation & Usage

# Run directly with uvx (no installation required)
uvx scicomp-neural-mcp

# Or install with pip
pip install scicomp-neural-mcp

# With GPU support (recommended for training)
pip install scicomp-neural-mcp[gpu]

# Run as command
scicomp-neural-mcp

Available Tools

Model Management

  • define_model - Create neural network models (ResNet18, MobileNet, custom)
  • load_pretrained - Load pretrained models from torchvision or Hugging Face
  • get_model_summary - Get detailed layer-by-layer breakdown
  • export_model - Export to ONNX or TorchScript

Data Loading

  • load_dataset - Load standard datasets (CIFAR-10, MNIST, ImageNet)
  • create_dataloader - Create batched dataloaders with shuffling

Training

  • train_model - Train model on dataset with configurable parameters
  • get_experiment_status - Monitor training progress
  • evaluate_model - Evaluate on test set

Analysis

  • compute_metrics - Compute detailed performance metrics
  • confusion_matrix - Generate confusion matrices
  • plot_training_curves - Visualize loss and accuracy curves
  • visualize_predictions - Inspect model predictions on samples

Hyperparameter Optimization

  • tune_hyperparameters - Automated hyperparameter search

Configuration

Enable GPU acceleration with environment variable:

MCP_USE_GPU=1 scicomp-neural-mcp

Examples

📖 Code Examples

Practical tutorials in EXAMPLES.md:

  • MNIST digit recognition (complete workflow)
  • Transfer learning with ResNet
  • Hyperparameter optimization
  • Confusion matrix analysis
  • Progressive learning path (beginner → advanced)

📚 Full Documentation

See the API documentation for complete API reference.

Part of Math-Physics-ML MCP System

Part of a comprehensive system for scientific computing. See the documentation for the complete ecosystem.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scicomp_neural_mcp-0.1.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scicomp_neural_mcp-0.1.4-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file scicomp_neural_mcp-0.1.4.tar.gz.

File metadata

  • Download URL: scicomp_neural_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scicomp_neural_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 61281c365dc1bebdc3fb977f8979da3097f276a218f7c522d80de3e12a7fedec
MD5 e933c86c13b62487be331d4bed4bcd16
BLAKE2b-256 354c6acb2a8129b258ff70d0a27a177809e104f8b1719cf99aae3a02ed47e9a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for scicomp_neural_mcp-0.1.4.tar.gz:

Publisher: publish.yml on andylbrummer/math-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scicomp_neural_mcp-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for scicomp_neural_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3867c196295a6ee4d653457cc629231a8b9765d12bd50293fd5adf4fd5bc7c5c
MD5 e5bf30304880bc34fd976bd39d4ba286
BLAKE2b-256 95789de7adb6be3e6f148ec77bb971cba55271e4e4accd1c9a0f17c30632f85f

See more details on using hashes here.

Provenance

The following attestation bundles were made for scicomp_neural_mcp-0.1.4-py3-none-any.whl:

Publisher: publish.yml on andylbrummer/math-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page