Skip to main content
Glama
MikeyBeez

mcp-frontiermath

by MikeyBeez
README.md
# mcp-frontiermath

MCP server providing FrontierMath problem solving capabilities to Claude

## 🚀 Getting Started

This MCP server wraps the existing `frontiermath-solver` CLI tool to provide mathematical computation capabilities through the Model Context Protocol.

### Prerequisites

- Node.js (v18 or higher)
- The `frontiermath-solver` project must be available at `/Users/bard/Code/frontiermath-solver`

### Installation

```bash
# Clone the repository
git clone https://github.com/username/mcp-frontiermath.git

# Navigate to project directory
cd mcp-frontiermath

# Install dependencies
npm install
```

### Available Tools

1. **frontiermath_solve_problem** - Solve specific FrontierMath problems by ID
   - Available problems: ALL3, CWA2, TIK2, RAP1, CWD31

2. **frontiermath_representation_theory** - Perform representation theory computations
   - Support for Coxeter groups, Braid groups, finite groups

3. **frontiermath_algebraic_geometry** - Algebraic geometry computations
   - Point counting on curves over finite fields

4. **frontiermath_number_theory** - Number theory computations
   - Multiplicative order density calculations

5. **frontiermath_finite_fields** - Finite field analysis
   - Field structure analysis

6. **frontiermath_list_problems** - List all available problems

### Usage with Claude Desktop

Add this server to your Claude Desktop configuration:

```json
{
  "mcpServers": {
    "frontiermath": {
      "command": "node",
      "args": ["/path/to/mcp-frontiermath/src/index.js"]
    }
  }
}
```

### Example Usage

```javascript
// Solve a specific FrontierMath problem
await frontiermath_solve_problem({ problemId: "ALL3" });

// Analyze a Coxeter group
await frontiermath_representation_theory({ 
  groupType: "coxeter", 
  dimension: 4 
});

// Count points on an algebraic curve
await frontiermath_algebraic_geometry({
  curve: "y^2 = x^3 + x + 1",
  field: "F_5^18"
});
```

## 🛠️ Development

```bash
# Start the MCP server
npm run dev

# Test the server
node src/index.js
```

## 📝 License

MIT License

TDQS

B3.4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: solving a specific problem by ID, performing computations in a specific mathematical domain, listing problems, and providing help. The domain-specific tools (representation theory, algebraic geometry, number theory, finite fields) are distinct enough despite some conceptual overlap, and their descriptions clarify their scopes.

Naming Consistency4/5

The naming is mostly consistent, using a frontiermath_ prefix with snake_case. Most tools are noun phrases (e.g., frontiermath_number_theory), while a few are verb phrases (frontiermath_solve_problem, frontiermath_list_problems), and 'help' breaks the pattern. However, the overall structure is readable and predictable.

Tool Count5/5

Seven tools is a well-scoped count for a specialized math server. It covers core problem-solving and representative mathematical domains without being overwhelming or insufficient.

Completeness4/5

The server provides the ability to list and solve problems, plus computational tools across key mathematical fields. Minor gaps exist, such as missing domains like combinatorics or a dedicated tool for retrieving a single problem's full statement, but the core workflow is well-supported.

Maintenance

ActivityInactive
ResponsivenessNo issues