extreme-p-mcp
The Extreme P-value MCP Server provides an API interface for extreme p-value calculation functions implemented in an R script. It uses pyper to call R from Python and is built with FastMCP. The project is actively developed, and APIs may change without notice.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
25
Forks
0
Issues
0
Extreme P-value MCP Server
Overview
This MCP server provides an API interface to extreme p-value calculation functions (z, t, F, chi-square, SAIGE) implemented in the R script extreme-P.R, via Python.
- Strongly depends on the R script
extreme-P.R(except for Wald). - Uses pyper to call R from Python.
- The API server is built with FastMCP.
extreme_p_helper.pyis a 1-to-1 wrapper for the R functions.server.pyprovides the API endpoints.
Status
🚧 Under Active Development 🚧
This project is under active development. APIs and features may change without notice.
Dependencies
- uv
- pyper
- fastmcp
- mcp[cli]
Directory structure
+.
├── server.py # Main FastMCP server
├── extreme_p_helper.py # R function wrapper
├── extreme-P.R # R script for extreme p-value calculation (see acknowledgements)
├── pyproject.toml # Dependencies
└── README.md # This document
Setup and Running
Add the MCP server to your MCP server list (Claude, Cursor, etc.)
{
"mcpServers": {
"ExtremeP": {
"command": "uv",
"args": ["--directory", "where you cloned the repo", "run", "server.py"],
"env": {}
}
}
}
Run MCP Inspector
# Install dependencies
uv sync
# Run MCP Inspector
uv --directory ./ run mcp dev server.py
Run the MCP server
# Install dependencies
uv sync
# Run the MCP server
uv run server.py
Example: Using from Python (not running as MCP server)
from extreme_p_helper import ExtremePHelper
helper = ExtremePHelper()
result = helper.pvalue_extreme_z(10)
print(result) # {'mantissa': ..., 'exponent': ...}
License
This MCP server is released under the Apache License 2.0.
Acknowledgements
7
Followers
22
Repositories
2
Gists
0
Total Contributions
🤩 Easy-to-use global IM bot platform designed for the LLM era / 简单易用的大模型即时通信机器人开发平台 ⚡️ Bots for QQ / QQ频道 / Discord / WeChat(微信)/ Telegram / 飞书 / 钉钉 / Slack 🧩 Integrated with ChatGPT(GPT)、DeepSeek、Dify、n8n、Claude、Google Gemini、xAI、PPIO、Ollama、阿里云百炼、SiliconFlow、Qwen、Moonshot(Kimi K2)、SillyTraven、MCP、WeClone etc. LLM & Agent & RAG