Parigp MCP server
MCP server exposing cypari2 (PARI/GP) number theory library
1 stars12 downloads/wk
Reviews
Write oneNobody has reviewed Parigp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Parigp tools (100, 4 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
CatalanGet Catalan's constant.
ColConvert to a column vector.
IListwrite actionCreate an empty list or convert to a list.
MatConvert to a matrix.
Modwrite actionCreate a modular number or polynomial.
PolConvert to a polynomial.
PolrevConvert to a polynomial (reverse order).
SerConvert to a power series.
SetConvert to a set.
VecConvert to a row vector.
absCompute absolute value.
allocatememChange the PARI stack size.
bezoutCompute the Bezout identity: gcd(a,b) = a*u + b*v.
binomialCompute the binomial coefficient C(n,k).
bnfinitInitialize a number field with Buchmann's algorithm.
bnrinitInitialize a ray number field (class field).
centerliftLift a modular object with centered representatives.
complexcosCompute cosine.
derivCompute the derivative of a polynomial.
discCompute the discriminant of a polynomial.
elladdAdd two points on an elliptic curve.
ellapCompute the trace of Frobenius for an elliptic curve at prime p.
elletaCompute the eta-quotients for an elliptic curve.
ellglobalredCompute the global reduction type of an elliptic curve.
ellheightCompute the canonical height of a point on an elliptic curve.
ellinitInitialize an elliptic curve.
elljCompute the j-invariant of an elliptic curve.
elllocalredCompute the local reduction type at prime p.
elllogCompute the discrete logarithm of a point on an elliptic curve.
ellmulMultiply a point on an elliptic curve by an integer.
ellorderCompute the order of a point on an elliptic curve.
elltorsCompute the torsion subgroup of an elliptic curve.
ellwpCompute the Weierstrass p-function.
ellzetaCompute the Weierstrass zeta function.
eulerGet Euler's constant.
eval_expressionEvaluate a PARI/GP expression string.
expCompute exponential.
factorFactor an integer.
factorialCompute the factorial n!.
factorpadicFactor a polynomial over the p-adic numbers.
fibonacciCompute the nth Fibonacci number.
gcdCompute the greatest common divisor of two integers.
get_pari_versionGet the PARI/GP version string.
get_real_precisionGet the current PARI default real precision in decimal digits.
get_real_precision_bitsGet the current PARI default real precision in bits.
getrandGet PARI's current random number seed.
hessCompute the Hessenberg form of a matrix.
idealaddAdd two ideals in a number field.
idealfactorFactor an ideal in a number field.
idealmulMultiply two ideals in a number field.
idealpowCompute a power of an ideal.
integCompute the integral of a polynomial.
isprimeTest if an integer is prime.
jacobiCompute the Jacobi symbol (a/n).
lcmCompute the least common multiple of two integers.
legendreCompute the Legendre symbol (a/p).
liftLift a modular object (remove Mod wrapper).
logCompute natural logarithm.
lucasCompute the nth Lucas number.
matcharpolyCompute the characteristic polynomial of a matrix.
matdetCompute the determinant of a matrix.
mateigenCompute the eigenvalues of a matrix.
matidwrite actionCreate an n x n identity matrix.
matimageCompute the image of a matrix.
matinvCompute the inverse of a matrix.
matkerCompute the kernel of a matrix.
matrankCompute the rank of a matrix.
matzerowrite actionCreate a zero matrix.
moebiusCompute the Möbius function mu(n).
nfinitInitialize a number field defined by a polynomial.
normCompute the norm of a polynomial/algebraic number.
oneGet the integer 1.
phiCompute Euler's totient function phi(n).
piGet the value of pi.
polchebyshevCompute the nth Chebyshev polynomial of the first kind.
polcycloCompute the nth cyclotomic polynomial.
polhermiteCompute the nth Hermite polynomial (probabilists' version).
pollegendreCompute the nth Legendre polynomial.
polrootsCompute the complex roots of a polynomial.
polrootsmodCompute the roots of a polynomial modulo p.
polrootspadicCompute the p-adic roots of a polynomial.
primeReturn the nth prime (1-indexed).
primesReturn prime numbers.
resultantCompute the resultant of two polynomials.
set_real_precisionSet the PARI default real precision in decimal digits.
set_real_precision_bitsSet the PARI default real precision in bits.
setrandSet PARI's random number seed.
sigmaCompute the sum of k-th powers of divisors of n.
sinCompute sine.
sqrtCompute square root.
stacksizeGet the current PARI stack size in bytes.
stacksizemaxGet the maximum PARI stack size in bytes.
substSubstitute a variable in a polynomial.
tanCompute tangent.
traceCompute the trace of a polynomial/algebraic number.
zeroGet the integer 0.
znorderCompute the multiplicative order of x modulo n.
znstarCompute the structure of (Z/nZ)*.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 159 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Parigp compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 63% of 48,273 servers
- Tools
- 100
- the typical server has 7
- Tools that change things
- 4%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,534 servers
- Downloads a week
- 12
- more than 3% of 11,915 servers with a package
What its tools let an agent do: 91 read · 8 change · 1 run or deploy
Install Parigp in Claude Code, Cursor or VS Code
claude mcp add mcp-parigp -- uvx mcp-parigp
What the publisher says
From the Parigp repository's README, as published. We do not edit it. Read it on GitHub
mcp-parigp
MCP server exposing cypari2 (PARI/GP) number theory library
mcp-name: io.github.daedalus/mcp-parigp
Install
pip install mcp-parigpUsage
As MCP Server
Run directly:
mcp-parigpOr use with an MCP client by configuring in your settings:
{
"mcpServers": {
"mcp-parigp": {
"command": "mcp-parigp"
}
}
}In Python
from mcp_parigp import eval_expression, factor, isprime
# Evaluate PARI/GP expressions
result = eval_expression("factor(100)")
print(result) # [[2, 2], [5, 2]]
# Factor integers
print(factor(100)) # [[2, 2], [5, 2]]
# Test primality
print(isprime(29)) # TrueAPI
Number Theory
- factor(n) - Factor an integer
- isprime(n) - Test if n is prime
- gcd(a, b) - Greatest common divisor
- phi(n) - Euler's totient function
- sigma(n, k) - Sum of k-th power of divisors
- jacobi(a, n) - Jacobi symbol
- znorder(x, n) - Multiplicative order modulo n
- primes(n) - First n primes
- nextprime(n) - Next prime after n
Polynomials
- polroots(pol) - Find roots of polynomial
- polcyclo(n) - n-th cyclotomic polynomial
- deriv(pol) - Derivative of polynomial
- subst(pol, v, expr) - Substitute in polynomial
Number Fields
- nfinit(pol) - Initialize number field
- bnfinit(pol) - Initialize with Buchmann's algorithm
- idealadd(nf, a, b) - Add ideals
- idealmul(nf, a, b) - Multiply ideals
Elliptic Curves
- ellinit(eq) - Initialize elliptic curve
- ellap(E, p) - Trace of Frobenius at p
- elltors(E) - Torsion subgroup
- ellheight(E, P) - Canonical height
Matrices
- matid(n) - n×n identity matrix
- matdet(m) - Matrix determinant
- matinv(m) - Matrix inverse
- matrank(m) - Matrix rank
Elementary Functions
- sin, cos, tan, asin, acos, atan
- sinh, cosh, tanh, asinh, acosh, atanh
- exp, log, sqrt, abs
- pi(), euler(), I()
Development
git clone https://github.com/daedalus/mcp-parigp.git
cd mcp-parigp
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/Nothing above is checked by us. What we check is on the safety report.
Parigp: common questions
- Is Parigp MCP server safe?
- Mostly: it is graded B (82/100). Read the Parigp safety report
- How do I install Parigp?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Parigp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Parigp maintained?
- The last commit was 195 days ago (2026-04-21). The latest release is v0.1.0.
- How does Parigp compare with other MCP servers?
- safety score 82/100 (higher than 63% of 48,273 servers); tools 100 (the typical server has 7); tools that change things 4% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.