{"repo":"posit-dev/mcptools","free":true,"listed":false,"github":"https://github.com/posit-dev/mcptools","clone":"git clone https://github.com/posit-dev/mcptools.git","description":"Model Context Protocol For R","language":"R","stars":193,"topics":["mcp-server","r"],"license":null,"category":"mcp-servers","readme_excerpt":"mcptools mcptools implements the Model Context Protocol in R. There are two sides to mcptools: R as an MCP server : When configured with mcptools, MCP-enabled tools like Claude Desktop, Claude Code, and VS Code GitHub Copilot can run R code in the sessions you have running to answer your questions. While the package supports configuring arbitrary R functions, you may be interested in the btw package’s integrated support for mcptools, which provides a default set of tools to to peruse the documentation of packages you have installed, check out the objects in your global environment, and retrieve metadata about your session and platform. R as an MCP client : Register third-party MCP servers with ellmer chats to integrate additional context into e.g. shinychat and querychat apps. Installation Install mcptools from CRAN with: You can install the development version of mcptools like so: R as an MCP server mcptools can be hooked up to any application that supports MCP. For example, to use with Claude Desktop, you might paste the following in your Claude Desktop configuration (on macOS, at /Library/Application Support/Claude/claude desktop config.json ): Or, to use with Claude Code, you might type in a terminal: Then, if you’d like models to access variables in specific R sessions, call mcptools::mcp session() in those sessions. (You might include a call to this function in your .Rprofile, perhaps using usethis::edit r profile() , to automatically register every session you start up","default_branch":null,"files":null,"tree":[],"storefront":"/r/posit-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/posit-dev/mcptools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}