mathcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mathcpCalculate pi to 100 digits"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mathcp
A small, stateless MCP server for some of mathematics' most interesting constants, hosted on Cloudflare Workers.
What it exposes
list_interesting_numberslists the available constants.get_interesting_numberreturns a constant, its defining formula, a decimal approximation, and why it matters.The
mathcp://pi/methodsresource lists ten methods for calculating π, including each formula and its convergence characteristics.calculate_piaccepts a method identifier and a number of decimal digits (0–10,000), then returns the arbitrary-precision result and method metadata.find_prime_numbersuses MCP elicitation to ask exactly two questions (the minimum and maximum), then returns every prime in that inclusive range.investigate_prime_patternscalculates verified primes and successive prime gaps, then uses MCP sampling to ask the client's language model for a cautious pattern analysis. Ranges are limited to a span of 2,000 integers to keep the sampling request bounded. This tool requires a client that supports sampling.Prompt templates provide three different ways to explore a maths topic:
mc_escheruses symmetry, tessellation, recursion, and visual metaphors. Example: “Explain hyperbolic geometry using a repeating tiled world.”ada_lovelaceturns an idea into an algorithm with pseudocode and a traced example. Example: “Turn Euclid's algorithm into a small program and trace one example.”srinivasa_ramanujansearches small examples for patterns before carefully separating conjecture from proof. Example: “Investigate patterns in the partition numbers for small integers.”
GET /describes the service.GET /healthprovides a conventional health check./mcpis the Streamable HTTP MCP endpoint.
The initial catalogue includes pi, Euler's number, the golden ratio, and the imaginary unit. The code is deliberately data-driven so another constant can be added in one place.
Related MCP server: GitHub OAuth MCP Server
Develop locally
npm install
npm run check
npm test
npm run devRun the same MCP server locally over stdio:
npm run mcp:localFor Codex, register the executable directly so npm does not write status text to the MCP protocol stream:
codex mcp add mathcp-local -- \
node \
--import /absolute/path/to/mathcp/node_modules/tsx/dist/loader.mjs \
/absolute/path/to/mathcp/src/stdio.tsCopy the example secrets file and set a long random bearer token before starting the local server:
cp .dev.vars.example .dev.varsThe local MCP endpoint is normally http://localhost:8787/mcp. Clients must send
the configured token in the Authorization header:
Authorization: Bearer <your-token>Deploy to Cloudflare
Authenticate Wrangler, then deploy:
npx wrangler login
npx wrangler secret put AUTH_TOKEN
npm run deployWrangler prints the deployed Worker URL. Append /mcp when configuring an MCP
client, for example https://mathcp.<account>.workers.dev/mcp. Configure the MCP
client to send the same bearer header. The root description and /health remain
public; /mcp requires authentication in both local and deployed environments.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA lightweight MCP server built with Hono and Cloudflare Workers that provides a tool for prime factorization. It serves as a minimal implementation for deploying remote MCP servers to serverless edge environments.Last updated28MIT
- Flicense-qualityCmaintenanceA remote MCP server deployed on Cloudflare Workers with GitHub OAuth authentication, providing tools for mathematical operations and GitHub API access.Last updated
- Flicense-qualityDmaintenanceA universal MCP server providing calculator and API calling tools, deployable on Cloudflare Workers.Last updated
- Flicense-qualityCmaintenanceA remote MCP server deployed on Cloudflare Workers with OAuth login, enabling tools like math operations to be called via natural language.Last updated
Related MCP Connectors
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Cloudflare Workers MCP server: crypto-signal
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/robdabell/mathcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server