Labsco
chi2labs logo

MCPR

from chi2labs

Expose R functions through the Model Context Protocol (MCP) for seamless integration with AI assistants.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

mcpr

CRAN status

mcpr exposes R functions through the Model Context Protocol (MCP), enabling seamless integration with AI assistants like Claude Desktop.

Configure Claude Desktop

Add to Claude Desktop's configuration:

{
  "mcpServers": {
    "r-analysis": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

Examples

Complete examples in inst/examples/:

  • basic-server.R - Simple server with basic tools
  • stats-server.R - Statistical analysis tools
  • data-server.R - Data manipulation and visualization