Tidymodels MCP Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Tidymodels MCP Server
A Model Context Protocol (MCP) server that provides tools and resources for working with the tidymodels ecosystem in R.
Overview
While this MCP server is extensible for use with tool-agnostic agentic AI workflows, in it's current form it can be paired with Cline.bot and Claude Desktop as a local MCP server. The purpose of this MCP is to monitor the tidymodels ecosystem, specifically the GitHub repositories under the tidymodels organization, providing comprehensive information about tidymodels packages, functions, and common workflows.
Currently, I'm getting better MCP performance when paired with Cline to:
- List all packages in the tidymodels ecosystem
- Provide detailed information about specific packages
- Search for R functions across tidymodels packages
- Generate template code for common tidymodels tasks
- Search for issues in tidymodels repositories
Installation
Prerequisites
Setup
- Clone this repository:Copy
- Install dependencies:Copy
- Build the server:Copy
Configuration
GitHub Token (Optional)
The server can use a GitHub token to avoid rate limits when accessing the GitHub API. To provide a token:
- Create a personal access token with the
public_repo
scope. - Add it to your configuration as shown below.
Adding to Cline in Visual Studio Code, Positron, and OSS Code IDEs
After you've installed Cline's VS Code extension, navigate to its MCP Servers marketplace where you can configure local MCP server settings. Then, add the JSON to Cline's cline_mcp_settings.json
(if you want to autoapprove the core tools within this MCP server library, keep the names shown in the autoApprove
list):
Adding to Claude Desktop
To use this MCP server with Claude Desktop, add it to your claude_desktop_config.json
:
The config file is typically located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Available Tools
The server provides the following tools:
list_tidymodels_packages
Lists all packages in the tidymodels ecosystem.
get_package_details
Get detailed information about a specific tidymodels package.
search_r_functions
Search for R functions in tidymodels packages.
generate_tidymodels_code
Generate R code for common tidymodels tasks.
search_issues
Search for issues in tidymodels repositories.
Available Resources
The server also provides access to:
- All repositories in the tidymodels GitHub organization
- Documentation about tidymodels packages
- Template code for common tasks
Usage Examples
Here are some examples of how to use this MCP server with Cline:
Listing Tidymodels Packages
Getting Package Details
Searching for Functions
Generating Code Templates
Searching Issues
Development
Project Structure
js/
: Contains the JavaScript/Node.js server implementationsrc/
: Contains the TypeScript source (if using TypeScript)build/
: Output directory for build files
Building from Source
If you've made changes to the TypeScript files, you can rebuild the server with:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- The tidymodels team for their excellent R packages
- The Model Context Protocol for enabling enhanced AI capabilities
This server cannot be installed
A server that provides access to the tidymodels R ecosystem, enabling users to list packages, search functions, generate code templates, and search issues through AI assistants like Cline.bot and Claude Desktop.