Back to Directory/Developer Tools

io.github.daedalus/mcp-number-theory

MCP server exposing number theory functions and factorization algorithms

Developer ToolsPythonv0.1.0

mcp-number-theory

MCP server exposing number theory functions and factorization algorithms.

PyPI Python

Install

pip install mcp-number-theory

Usage

from mcp_number_theory import number_theory as nt

# Compute GCD
result = nt.gcd(48, 18)  # Returns 6

# Factorize
from mcp_number_theory import algos
p, q = algos.fermat(1234567890123456789)

MCP Server

This package provides an MCP server that exposes number theory functions. Run with:

mcp-number-theory

mcp-name: io.github.daedalus/mcp-number-theory

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx mcp-number-theory

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-daedalus-mcp-number-theory": {
      "command": "uvx",
      "args": [
        "mcp-number-theory"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

mcp-number-theorypypi

Compatible MCP Clients

io.github.daedalus/mcp-number-theory works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More