Maxwell Bot MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/jkearney126/maxwell_bot.git
cd maxwell_bot
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}" maxwell-bot -- python "<FULL_PATH_TO_MAXWELL_BOT>/dist/index.js"

Replace <FULL_PATH_TO_MAXWELL_BOT>/dist/index.js with the actual folder you prepared in step 1.

Required:ANTHROPIC_API_KEY
README.md

Skill-agnostic AI agent framework for electromagnetics and magnetic circuits

Maxwell Bot: Skill-Agnostic AI Agent Framework

A sample project demonstrating a skill-agnostic AI agent that dynamically loads domain expertise from markdown skill definitions, with an example magnetics/electromagnetics SME skill.

Project Overview

This project showcases a generic agent framework that can work with any domain expertise by loading tool definitions and system prompts from skill.md files. The magnetics example demonstrates how to build an expert-level AI agent for electromagnetics and magnetic circuit design using real equations and precise numerical computations.

Key features:

  • Skill-agnostic architecture - works with any domain by loading from skill.md files
  • Hand-rolled agentic loop (no framework dependencies) for transparent agent reasoning
  • Dynamic tool discovery - parses tool schemas directly from skill.md markdown
  • Retrieval-augmented generation (RAG) - Chroma vector database with semantic search over domain knowledge
  • Real physics equations with SI unit constants (e.g., μ₀ = 4π×10⁻⁷ H/m)
  • 8 specialized magnetics tools for field calculations, circuit analysis, and unit conversions
  • Configuration-driven design - change agent behavior by editing skill.md, no code changes needed
  • Comprehensive test suite validating all tools and calculations

Architecture

┌──────────────────────────────────────┐
│   CLI (cli.py)                       │
│   - Skill selection & discovery      │
│   - Interactive chat interface       │
└────────────────┬─────────────────────┘
                 │
┌────────────────▼─────────────────────┐
│   SkillAgent (Anthropic SDK)         │
│   - Agentic loop                     │
│   - Tool orchestration               │
│   - skill.md parsing & loading       │
└────────────────┬─────────────────────┘
                 │
        ┌────────▼─────────┐
        │  Skills/         │
        │  <skill-name>/   │
        │  - skill.md      │
        │  - tool configs  │
        └────────┬─────────┘
                 │
     ┌───────────┴───────────┬──────────────┐
     │                       │              │
┌────▼─────┐  ┌─────────┐ ┌─┴──────────┐ ┌─┴──────┐
│ Fields   │  │Circuits │ │ Materials  │ │Convert │
│ (fields) │  │(circuits)│ │ (materials)│ │(units) │
└──────────┘  └─────────┘ └────────────┘ └────────┘

Project Structure

maxwell_bot/
├── agent/
│   ├── agent.py               # SkillAgent: generic, skill-agnostic framework
│   └── __init__.py
├── mcp_server/
│   ├── tools/
│   │   ├── fields.py          # B/H field calculations (solenoid, wire, flux, energy)
│   │   ├── circuits.py        # Reluctance, MMF calculations
│   │   ├── materials.py       # Material property lookup (6 materials)
│   │   ├── converters.py      # Unit conversions (T↔Gauss, Wb↔Maxwell, etc.)
│   │   └── __init__.py
│   └── __init__.py
├── skills/
│   └── maxwell_magnetics/
│       └── skill.md           # Skill definition: tool reference, use cases, boundaries
├── tests/
│   ├── test_fields.py         # Field calculation tests
│   ├── test_circuits.py       # Circuit calculation tests
│   ├── test_materials.py      # Material lookup tests
│   ├── test_converters.py     # Conversion tests
│   └── __init__.py
├── cli.py                     # Interactive CLI entry point
├── requirements.txt           # Python dependencies
├── .gitignore
└── README.md                  # This file

Installation & Setup

Prerequisites

  • Python 3.9+
  • pip package manager
  • An Anthropic API key

Step 1: Clone or Download the Project

git clone https://github.com/jkearney126/maxwell_bot.git
cd maxwell_bot

Step 2: Create a Virtual Environment (Recommended)

python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Set Your Anthropic API Key

export ANTHROPIC_API_KEY="sk-ant-..."  # On Windows: set ANTHROPIC_API_KEY=sk-ant-...

Or, for persistent setup, add to your shell profile (~/.bashrc, ~/.zshrc, etc.):

export ANTHROPIC_API_KEY="your-key-here"

Running the Agent

Interactive Chat Interface

python cli.py

This launches an interactive chat where you can:

  • Select from available skills (if multiple exist)
  • Choose from 5 example prompts (by number 1-5)
  • Type your own custom questions
  • See animated thinking spinner while Claude responds
  • Type quit or exit to exit

The agent auto-discovers skills from the skills/ directory and loads tool definitions and expertise from each skill's skill.md file.

Skill Definition Files (skill.md)

Each skill lives in skills/<skill-name>/ with a skill.md file that defines:

  • Use Case Decision Table: Maps problem types to appropriate tools
  • Tool Reference: Complete tool specifications with:
    • Input/output schemas (parsed automatically by the agent)
    • Use cases and assumptions
    • Physics eq

Tools (4)

fieldsPerforms B/H field calculations including solenoid, wire, flux, and energy.
circuitsCalculates reluctance and MMF for magnetic circuits.
materialsLooks up magnetic material properties.
convertersPerforms unit conversions for magnetic units like T to Gauss or Wb to Maxwell.

Environment Variables

ANTHROPIC_API_KEYrequiredAPI key for Anthropic services

Configuration

claude_desktop_config.json
{"mcpServers": {"maxwell_bot": {"command": "python", "args": ["path/to/maxwell_bot/cli.py"]}}}

Try it

Calculate the magnetic flux density for a solenoid with 500 turns and 2 amps of current.
What is the relative permeability of silicon steel?
Convert 1.5 Tesla to Gauss.
Calculate the reluctance of a magnetic circuit with a path length of 0.1m and cross-sectional area of 0.002m^2.

Frequently Asked Questions

What are the key features of Maxwell Bot?

Skill-agnostic architecture for loading domain expertise. 8 specialized magnetics tools for physics computations. Real physics equations with SI unit constants. Configuration-driven design via skill.md files. Transparent agentic loop for reasoning.

What can I use Maxwell Bot for?

Performing precise numerical computations for magnetic circuit design. Looking up material properties for electromagnetic simulations. Converting between various magnetic unit systems for engineering documentation. Analyzing B/H field characteristics for solenoid and wire configurations.

How do I install Maxwell Bot?

Install Maxwell Bot by running: git clone https://github.com/jkearney126/maxwell_bot.git && cd maxwell_bot && pip install -r requirements.txt

What MCP clients work with Maxwell Bot?

Maxwell Bot works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Maxwell Bot docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare