Secure Docker-based MCP server for R statistical analysis. Run R code and create visualizations through natural language.


R Language MCP is a secure Docker-based MCP server built with Python and FastMCP. It enables conversational R data visualization and analysis. All code runs in isolated containers for security.
brew install r uv python@3.12 --cask docker
uvx --from git+https://github.com/saidsurucu/rlang-mcp-python rlang-mcp-python
sudo apt install r-base python3.12 docker.io
pip install uv
uvx --from git+https://github.com/saidsurucu/rlang-mcp-python rlang-mcp-python
Download R and Python 3.12+, then:
pip install uv
uvx --from git+https://github.com/saidsurucu/rlang-mcp-python rlang-mcp-python
"Mount ~/Documents/analysis directory as R working directory."
"List all Excel files and show available data."
"Load sales_data.xlsx, show summary statistics, calculate monthly totals."
"Create a publication-quality bar chart of monthly sales by category."
MIT License
R Language MCP is open source. If your organization needs something similar for its own data sources, let's talk.