cran_mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CRAN MCP
A Model Context Protocol server that provides up-to-date R package documentation, package status information and R release information directly from CRAN.
The server is stateless: it fetches current CRAN data on demand and returns only the relevant information to the MCP client.
Tools
search_packages(query, limit=20)searches all current CRAN package names and short descriptions and ranks matching packages.get_package_info(package)returns the package title, description, current version, CRAN publication date and dependency groups (Depends,Imports,Suggests,LinkingTo,Enhances).get_package_news(package, version=None, max_chars=50000)returns the package NEWS/changelog page from CRAN, optionally restricted to one version such as1.18.4.get_package_check_status(package)returns the current CRAN check status, status counts and results for every check flavor.get_package_topics(package, query=None, limit=100)lists help topics from a CRAN package.get_topic_documentation(package, topic, max_chars=30000)returns one help topic as plain text with its CRAN source URL.search_package_documentation(package, query, limit=10)searches the reference manual and returns matching snippets.get_r_versions(major=None, limit=100)lists R releases available from CRAN, optionally restricted to a major version such as4.get_r_version_news(version, max_chars=50000)returns the official R NEWS section for one R release, for example4.5.1.
Related MCP server: mcp-server-npm
Package discovery
search_packages() uses the same machine-readable CRAN package database as tools::CRAN_package_db() in R:
https://cran.r-project.org/web/packages/packages.rdsThe RDS database contains the package metadata for current CRAN packages. The search uses Package and Title, where Title is the short package description shown in CRAN's package-by-name list. The RDS file is parsed directly in Python; R is not required at runtime.
Examples:
search_packages("survival model")
search_packages("arrow", limit=10)R releases
get_r_versions() reads the official CRAN R source directories, so the version list is not hard-coded.
Examples:
get_r_versions()
get_r_versions(major=4)
get_r_version_news("4.5.1")Local setup
uv sync --dev
uv run cran-mcpThe MCP endpoint is available at http://127.0.0.1:8000/mcp.
Docker
docker build -t cran-mcp .
docker run --rm -p 8000:8000 -e MCP_ALLOWED_HOSTS=localhost,localhost:* cran-mcpEnvironment variables
PORT: HTTP port, default8000.MCP_ALLOWED_HOSTS: comma-separated allowed Host values for public deployment.MCP_ALLOWED_ORIGINS: optional comma-separated allowed browser origins.
Examples
search_packages("Bayesian survival")
get_package_info("data.table")
get_package_news("data.table")
get_package_news("data.table", version="1.18.4")
get_package_check_status("data.table")
get_topic_documentation("data.table", "fread")
get_r_versions(major=4)
get_r_version_news("4.5.1")MCP client
|
| package / R release request
v
CRAN MCP
|
| HTTPS
v
CRAN package database, package pages, NEWS, checks, R source index and HTML reference manualsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
MCP server for opencode documentation, generated by doc2mcp.
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
MCP server for innovationlab documentation, generated by doc2mcp.
MCP server for manus documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for obtaining the README content, metadata and search function of CPAN packages.31Apache 2.0
- AlicenseAqualityDmaintenanceMCP server to search npm packages, view details, compare, check downloads, and inspect dependencies.647 npmMIT
- AlicenseAqualityCmaintenanceMCP server that fetches and searches the latest stable documentation for any package from PyPI, npm, and crates.io.5MIT
- AlicenseAqualityDmaintenanceA comprehensive MCP server for checking package versions and rating package quality across Python (PyPI), JavaScript/TypeScript (npm), Dart (pub.dev), and Rust (crates.io) ecosystems.5MIT