AI istemcilerinin aktif oturumlarda R kodu çalıştırmasını sağlar ve üçüncü taraf MCP server yapılarını R sohbetlerinde araç olarak kaydeder.
Ayrıca bilinen adı posit-dev/mcptools
- Yıldızlar
- 206
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- —
- Son commit
- 20 Eki 2026
- Lisans
- —
mcptools MCP nedir?
mcptools bir MCP sunucusudur. AI istemcilerinin aktif oturumlarda R kodu çalıştırmasını sağlar ve üçüncü taraf MCP server yapılarını R sohbetlerinde araç olarak kaydeder.
Özet, projenin README dosyasından oluşturuldu
mcptools MCP sunucusu hakkında
mcptools, veri bilimcileri ve geliştiriciler için aktif yapay zeka kodlama oturumları içinde doğrudan R kodu çalıştırmayı mümkün kılar. Bu paket, Model Context Protocol yapısını R içinde uygulayarak Claude Desktop, Claude Code ve VS Code GitHub Copilot gibi yapay zeka asistanlarının canlı R ortamınızla etkileşime girmesine olanak tanır. R fonksiyonlarını araç olarak sunmak için mcp_server fonksiyonunu kullanabilir veya modellerin çalışan oturumlarınızdaki belirli değişkenlere ve nesnelere erişmesini sağlamak için mcp_session fonksiyonunu kullanabilirsiniz.
Paket, bir server olarak hareket etmenin yanı sıra bir MCP istemcisi olarak da işlev görür. Bu sayede GitHub, Confluence veya Google Drive gibi üçüncü taraf MCP server yapılarını R tabanlı sohbet uygulamalarınıza kaydedebilirsiniz. ellmer kütüphanesi ile birlikte mcp_tools fonksiyonunu kullanarak, bu harici araçları shinychat veya querychat gibi uygulamalara entegre edebilir ve çeşitli veri kaynaklarını R tabanlı konuşmalı arayüzlerinize dahil edebilirsiniz.
Neler yapabilirsiniz
- 1Canlı R oturum verilerini sorgulamaEtkileşimli R oturumunuzda o an yüklü olan bir veri çerçevesinden (data frame) belirli değerleri veya özet istatistikleri bulması için bir yapay zeka asistanından talepte bulunun.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Yapılandırma
GITHUB_PERSONAL_ACCESS_TOKEN
| Ad | Açıklama | Sunucu |
|---|---|---|
| GITHUB_PERSONAL_ACCESS_TOKEN | — |
Otomatik kontroller
Çalıştırıldı 13 Kas 2026Tam rapor →Henüz doğrulanmadı. Bir sunucunun 80 puana, ciddi bir bulgu olmamasına ve kontrol edebilmemiz için yeterli veriye ihtiyacı vardır. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebilirposit-dev/mcptools is public and reachablegithub.com/posit-dev/mcptools ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorKontrol edilmedi
- Derleme kökeni (Sigstore onayı)Kontrol edilmedi
- Açık kaynak lisansı (OSI)No licenseBulgu
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-10-20github.com/posit-dev/mcptools ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Pakette veya bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
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:
install.packages("mcptools")
You can install the development version of mcptools like so:
pak::pak("posit-dev/mcptools")
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):
{
"mcpServers": {
"r-mcptools": {
"command": "Rscript",
"args": ["-e", "mcptools::mcp_server()"]
}
}
}
Or, to use with Claude Code, you might type in a terminal:
claude mcp add -s "user" r-mcptools -- Rscript -e "mcptools::mcp_server()"
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.)
To deploy an HTTP MCP server to Posit Connect, add a _server.yml file
with engine: mcptools and a tools file:
engine: mcptools
tools: tools.R
Deploy the directory as an R API and mark it as MCP content:
rsconnect::deployAPI(".", contentCategory = "mcp")
If the content URL is https://connect.example.com/content/abc123/, use
https://connect.example.com/content/abc123/mcp as the MCP endpoint.
If you cannot set contentCategory = "mcp" during deployment, set the
MCP category in Connect after deploying and set minimum processes to at
least 1.
R as an MCP client
mcptools uses the Claude Desktop configuration file format to register third-party MCP servers, as most MCP servers provide setup instructions for Claude Desktop in their documentation. For example, here’s what the official GitHub MCP server configuration would look like:
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Once the configuration file has been created (by default, mcptools will
look to file.path("~", ".config", "mcptools", "config.json")),
mcp_tools() will return a list of ellmer tools which you can pass
directly to the $set_tools() method from ellmer:
ch <- ellmer::chat_anthropic()
ch$set_tools(mcp_tools())
ch$chat("What issues are open on posit-dev/mcptools?")
Example
In Claude Desktop, I’ll write the following:
“From what year is the earliest recorded sample in the
foresteddata in my Positron session?”
Without mcptools, Claude couldn’t get far here; by default, it can’t run R code and doesn’t have any way to “speak to” my interactive R sessions.
Using the package, the model asks to describe the data frame using a structure that will show summary statistics from the data. mcptools will appropriately route the request to the open Positron session, forwarding the results back to the model for it to situate in a response.
mcptools MCP soruları
Claude Desktop oturumumdaki R kodlarını çalıştırabilir mi?
Evet. mcptools bir MCP server olarak yapılandırıldığında, Claude Desktop, Claude Code ve VS Code Copilot gibi araçlar mevcut oturumlarınızda R kodu çalıştırabilir.
mcptools paketini R'a nasıl kurarım?
CRAN üzerinden yayınlanan sürümü install.packages("mcptools") ile veya GitHub üzerindeki geliştirme sürümünü pak::pak("posit-dev/mcptools") ile kurabilirsiniz.
mcptools'u Claude Desktop'a nasıl bağlarım?
Claude Desktop yapılandırma dosyanıza, sunucu komutu olarak Rscript -e "mcptools::mcp_server()" çalıştıran bir girdi ekleyin.
R, üçüncü taraf MCP server yapılarını araç olarak kullanabilir mi?
Evet. mcptools, üçüncü taraf MCP server yapılarını Claude Desktop konfigürasyon formatını kullanarak kaydeder; mcp_tools() fonksiyonu ise bir sohbetin $set_tools() metoduna aktarabileceğiniz ellmer araçlarını döndürür.
Bir mcptools MCP server yapısını Posit Connect üzerinde yayına alabilir miyim?
Evet. engine: mcptools içeren ve bir araç dosyasına sahip olan bir _server.yml dosyası ekleyin, dizini bir R API olarak dağıtın ve MCP içeriği olarak işaretleyin.