MCP server exposing gmpy2 arbitrary precision arithmetic functions
Project description
mcp-gmpy2
MCP server exposing gmpy2 arbitrary precision arithmetic functions
mcp-name: io.github.daedalus/mcp-gmpy2
Install
pip install mcp-gmpy2
Usage
# Run as stdio server
mcp-gmpy2
Available Tools
mpz- Create arbitrary precision integermpq- Create arbitrary precision rationalmpfr- Create arbitrary precision floating-pointadd- Add two arbitrary precision integerssub- Subtract two arbitrary precision integersmul- Multiply two arbitrary precision integersdiv- Divide two arbitrary precision integerspow- Power operation with arbitrary precisionpowmod- Modular exponentiationmod- Modulo operationis_prime- Primality testis_probable_prime- Probabilistic primality testnext_prime- Next prime after nprev_prime- Previous prime before nprime_factors- Get prime factorizationgcd- Greatest common divisorlcm- Least common multiplegcdext- Extended GCDinvert- Modular inversefac- Factorialfib- Fibonacci numberluc- Lucas numberbinomial- Binomial coefficientsqrt- Integer square rootis_square- Check if perfect squareis_power- Check if perfect poweriroot- Integer n-th rootnum_digits- Number of digitsnum_bits- Number of bitslegendre- Legendre symboljacobi- Jacobi symbolkronecker- Kronecker symboltonelli- Tonelli-Shanks square rootmobius- Mobius functionphi- Euler's totientdivisors- All divisorsnum_divisors- Count of divisorssum_divisors- Sum of divisorspartition- Partition function p(n)is_smooth- Check if B-smoothis_sophie_germain- Sophie Germain prime testis_safe_prime- Safe prime testmiller_rabin- Miller-Rabin primality testlucas_lehmer- Lucas-Lehmer primality test for Mersennesieve- Generate primes up to n
Development
git clone https://github.com/daedalus/mcp-gmpy2.git
cd mcp-gmpy2
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_gmpy2-0.1.0.tar.gz.
File metadata
- Download URL: mcp_gmpy2-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e17f00dde20134effb42853d6eb17094574f1634d02c89d0528ac1f36b5978
|
|
| MD5 |
b958f46ad59147c3e2a300bdc2718042
|
|
| BLAKE2b-256 |
a3a51b22412625fe1369a4a82157a14f2d51c262015fe72d8e923fce9451ad20
|
Provenance
The following attestation bundles were made for mcp_gmpy2-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-gmpy2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_gmpy2-0.1.0.tar.gz -
Subject digest:
36e17f00dde20134effb42853d6eb17094574f1634d02c89d0528ac1f36b5978 - Sigstore transparency entry: 1197289619
- Sigstore integration time:
-
Permalink:
daedalus/mcp-gmpy2@409d79e69fd491c7afdc382877e5186fc7f9c732 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@409d79e69fd491c7afdc382877e5186fc7f9c732 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_gmpy2-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_gmpy2-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f51448a179a83633a96e95ae6cce5262d88746306eb9bcd754624aae848467
|
|
| MD5 |
d4384dccf4024f41a31d1fcca865799e
|
|
| BLAKE2b-256 |
fd36a0b001a8f9d841c09c8b22a3ee3d585b4bec423240bb9eb8bf036c46ab4f
|
Provenance
The following attestation bundles were made for mcp_gmpy2-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-gmpy2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_gmpy2-0.1.0-py3-none-any.whl -
Subject digest:
62f51448a179a83633a96e95ae6cce5262d88746306eb9bcd754624aae848467 - Sigstore transparency entry: 1197289660
- Sigstore integration time:
-
Permalink:
daedalus/mcp-gmpy2@409d79e69fd491c7afdc382877e5186fc7f9c732 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@409d79e69fd491c7afdc382877e5186fc7f9c732 -
Trigger Event:
release
-
Statement type: