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
Recommend MCP Servers 💡
label-studio
This project provides a Model Context Protocol (MCP) server that allows interaction with a Label Studio instance using the label-studio-sdk. It enables programmatic management of labeling projects, tasks, and predictions via natural language or structured calls from MCP clients. Using this MCP Server, you can make requests like: * "Create a project in label studio with this data ..." * "How many tasks are labeled in my RAG review project?" * "Add predictions for my tasks." * "Update my labeling template to include a comment box."
voice-status-report-mcp-server
A Model Context Protocol (MCP) server that provides voice status updates using OpenAI's text-to-speech API
@yodablocks/mcp-installer
A MCP Server that installs other MCP servers hosted on npm or PyPi via Claude
lldb-mcp
LLDB MCP server
GXtract
GXtract MCP Server for VS Code, forks and other editors; provides tools for interacting with GroundX
muhammad-shameel-ks/gemini-img-gen-MCP
An MCP server for generating images via Google Gemini model using stdio transport.