{"repo":"devOpifex/mcpr","free":true,"listed":false,"github":"https://github.com/devOpifex/mcpr","clone":"git clone https://github.com/devOpifex/mcpr.git","description":"Model Context Protocol server and client for R","language":"R","stars":62,"topics":[],"license":"GPL-2.0","category":"mcp-servers","readme_excerpt":"mcpr is an R implementation of the Model Context Protocol (MCP), enabling R applications to expose capabilities (tools, resources, and prompts) to AI models through a standard JSON-RPC 2.0 interface. It also provides client functionality to connect to and interact with MCP servers. See the official MCP documentation for more information, particularly on schemas and capabilities. Visit package docs for more information on the R implementation. Installation You can install mcpr from GitHub using the pak package: Basic Usage Server Here's a simple example that creates an MCP server with a calculator tool: You can return multiple responses by returning a list of response objects: You can also serve via HTTP transport with serve http : See the Get Started guide for more information. MCP Roclet mcpr includes a roxygen2 roclet that can automatically generate MCP servers from your R functions using special documentation tags. This provides a convenient way to expose existing R functions as MCP tools. Usage 1. Add @mcp and @type tags to your function documentation: 2. Generate the MCP server using roxygen2: This will create an MCP server file at inst/mcp server.R that includes: - Tool definitions for all functions with @mcp tags - Proper input schemas based on @type tags - Handler functions that call your original R functions - A complete, runnable MCP server Supported Types The @type tag supports these parameter types: - string - Text values - number - Numeric values (integers and de","default_branch":null,"files":null,"tree":[],"storefront":"/r/devOpifex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/devOpifex/mcpr/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."}