mcptools: Model Context Protocol Servers and Clients

Implements the Model Context Protocol (MCP). Users can start 'R'-based servers, serving functions as tools for large language models to call before responding to the user in MCP-compatible apps like 'Claude Desktop' and 'Claude Code', with options to run those tools inside of interactive 'R' sessions. On the other end, when 'R' is the client via the 'ellmer' package, users can register tools from third-party MCP servers to integrate additional context into chats.

Package details

AuthorSimon Couch [aut, cre] (ORCID: <https://orcid.org/0000-0001-5676-5107>), Winston Chang [aut] (ORCID: <https://orcid.org/0000-0002-1576-2126>), Charlie Gao [aut] (ORCID: <https://orcid.org/0000-0002-0750-061X>), Posit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)
MaintainerSimon Couch <simon.couch@posit.co>
LicenseMIT + file LICENSE
Version1.0.1
URL https://github.com/posit-dev/mcptools https://posit-dev.github.io/mcptools/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("mcptools")

Try the mcptools package in your browser

Any scripts or data that you put into this service are public.

mcptools documentation built on July 27, 2026, 5:08 p.m.