Mathlas logo

Mathlas

by Archerkattri

Verifies numeric and Lean claims, searches mathematical literature, identifies constants and sequences, and checks theorem applicability.

Install Mathlas

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "archerkattri-mathlas": {
      "command": "uvx",
      "args": [
        "mathlas-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 12 tools correctly ().

Overview

Archerkattri/mathlas MCP server gives agents deterministic tools for mathematical search, numeric verification, constant and sequence identification, and Lean proof checking. It combines a local 3.68M-document math index, exact or high-precision computations, optional local data, and public Loogle or LeanSearch queries. The server contains no LLM and does not require an API key. Reach for it when an agent needs evidence, formal kernel checks, or structured precondition analysis instead of an unsupported mathematical assertion.

Use cases

  • Verify a proposed numerical identity before presenting it
  • Search for known theorems that may solve a problem
  • Check whether a candidate theorem's assumptions apply
  • Find the Lean declaration for a mathlib result
  • Identify an unknown constant or integer sequence

Key features

  • 3.68M-document mathematical retrieval index
  • PSLQ-based constant identification
  • Exact local OEIS sequence matching
  • Independent high-precision numeric verification
  • Lean 4 kernel proof checking
  • Theorem applicability checklists

Tools12

What Mathlas lets your agent do. Expand a tool for its parameters.

Verified live~2.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 111d

What it can do

From the 12 tools this server returned when we ran it; 12 declare their own safety hints.

Makes changes · 2Makes network requests · 1Read-only tools · 10
Network at startup2 connections
Files written at startup16

Observed 2026-11-28 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · mathlas-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars14Stargazers on the source repository.
Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed12Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Mathlas works

What Archerkattri/mathlas MCP server does

Archerkattri/mathlas MCP server supplies MCP tools for checking and investigating mathematical claims without embedding an LLM in the server. It can search a 3.68M-document math index, identify constants with PSLQ and closed-form matching, match integer sequences against a local OEIS copy, and independently re-evaluate numerical identities at high precision.

The server also supports formal mathematics workflows. Agents can search public Loogle and LeanSearch services for mathlib declaration names and types, then submit Lean snippets or proofs to the real Lean 4 kernel. Separate tools break a candidate theorem into preconditions and conclusions or create a structured needs-versus-guarantees scaffold. These outputs support the agent's judgment; the server does not decide whether a theorem's assumptions actually hold in the user's problem.

How it works

Most operations return candidates, verdicts, checklists, or scaffolds for the calling agent to interpret. search_existing_math uses dense retrieval, BM25, and reciprocal-rank fusion over the supplied corpus, while add_finding can add a result found through the agent's own web search. search_directive produces a web-search plan but does not perform the search itself.

identify_constant expects a decimal string with many digits and checks proposed forms through independent high-precision evaluation. verify_numeric only accepts an identity after at least 20 agreeing digits. conjecture_relation can look for unproved relations using PSLQ, continued fractions, and recurrence searches; its results are explicitly conjectural.

verify_formal either typechecks a complete Lean snippet or checks a supplied proposition and proof.

Setup and configuration

The Archerkattri/mathlas MCP server can run over stdio with uvx mathlas-mcp, or after installation with python -m mathlas.server. The documented Claude Code registration command is:

Terminal
claude mcp add mathlas -- uvx mathlas-mcp

Optional package extras provide the official MCP SDK, retrieval support for reading index data, and embedding dependencies. The server can fall back to a dependency-free stdio JSON-RPC implementation if the official SDK is unavailable.

Some capabilities depend on local resources. Sequence identification needs a local OEIS copy, and formal verification needs a Lean toolchain. If those resources are missing, the relevant tools report that the data or toolchain is unavailable rather than fabricating a result. The retrieval tool can use its prebuilt index or a supplied corpus directory.

Tools and capabilities

  • Identify numerical constants and integer sequences.
  • Verify closed-form numerical identities with independent re-evaluation.
  • Search existing mathematical results and formal mathlib declarations.
  • Check Lean 4 snippets and proofs with the kernel.
  • Decompose theorem assumptions and build applicability scaffolds.
  • Generate search plans, ingest web findings, and run the sandboxed FunSearch harness for the supported problem IDs.

Archerkattri/mathlas MCP server is best suited to agent workflows where every claim needs a provenance-aware search result, a deterministic calculation, or a formal verification status.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mathlas

Run `uvx mathlas-mcp`, or register it with Claude Code using `claude mcp add mathlas -- uvx mathlas-mcp`. A Python installation can run `python -m mathlas.server`.

No. Its formal search tool uses public Loogle and LeanSearch services when queried.

Yes. `verify_formal` checks Lean snippets or supplied proofs with the Lean 4 kernel, rejects `sorry` and `admit`, and reports the resulting verification status.

Call `identify_constant` with a decimal string containing many digits. It applies PSLQ and closed-form search, then independently re-evaluates candidates at 50 or more digits.

Sequence identification needs a local OEIS copy, and formal verification needs a Lean toolchain. Without them, those tools return an unavailable or undetermined result.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMathlas AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/archerkattri-mathlas?style=directory)](https://allmcps.com/mcp/archerkattri-mathlas)
HTML Embed
<a href="https://allmcps.com/mcp/archerkattri-mathlas"><img src="https://allmcps.com/api/badge/archerkattri-mathlas?style=directory" alt="Mathlas on AllMCPs" /></a>