mcptools
About this tool
Posit's official R implementation of MCP. As a server, it lets clients such as Claude Desktop, Claude Code and VS Code Copilot execute code in a running R session using loaded data and objects. As a client, it connects third-party MCP tools to model conversations through ellmer. The optional btw package adds documentation and environment-inspection tools.
- Feature 1: mcp_server() exposes R as an MCP server.
- Feature 2: mcp_session() registers a running R session and its data and objects.
- Feature 3: mcp_tools() connects third-party MCP tools to ellmer conversations.
- Feature 4: Expose R functions as tools; use btw for documentation and environment inspection.
- Feature 5: HTTP deployment on Posit Connect.
Resource information
- Maintainer
- Posit (posit-dev), maintained by Simon Couch; official project.
- Type
- MCP
- Category
- Experiments & data analysis
- Runs on
- MCP
- Who it's for
- Researchers using R for statistics, biostatistics, econometrics and social science, fitting models and checking results in the same RStudio or Positron session.
- License at time of listing
- MIT; the CRAN license field is MIT + file LICENSE.
- Source
- GitHub
