You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A production-ready Model Context Protocol (MCP) server that provides advanced statistical analysis capabilities through R. RMCP enables AI assistants and applications to perform sophisticated statistical modeling, econometric analysis, and data science tasks seamlessly.
8
+
**Version 0.2.0** - A production-ready Model Context Protocol (MCP) server that provides advanced statistical analysis capabilities through R. RMCP enables AI assistants and applications to perform sophisticated statistical modeling, econometric analysis, and data science tasks seamlessly.
9
9
10
10
## π Quick Start
11
11
@@ -22,16 +22,17 @@ That's it! RMCP is now ready to handle statistical analysis requests via the Mod
22
22
23
23
## β¨ Features
24
24
25
-
### Statistical Analysis
26
-
-**Linear Regression**: OLS with robust standard errors, diagnostic tests
27
-
-**Logistic Regression**: Binary classification with odds ratios and accuracy metrics
28
-
-**Correlation Analysis**: Pearson, Spearman, and Kendall correlations
29
-
-**Advanced Modeling**: Full R statistical ecosystem access
25
+
### Statistical Analysis β Available Now
26
+
-**Linear Regression** (`linear_model`): OLS with robust standard errors, RΒ², p-values
27
+
-**Logistic Regression** (`logistic_regression`): Binary classification with odds ratios and accuracy
28
+
-**Correlation Analysis** (`correlation_analysis`): Pearson, Spearman, and Kendall correlations
30
29
31
-
### Data Operations
32
-
-**File Analysis**: CSV, Excel, and data file processing
33
-
-**Data Transformation**: Cleaning, filtering, and reshaping
-**File Operations**: CSV analysis, data import/export
35
36
36
37
### Production Ready
37
38
-**MCP Protocol**: Full JSON-RPC 2.0 compliance
@@ -132,23 +133,41 @@ Add to your Claude Desktop MCP configuration:
132
133
rmcp start
133
134
134
135
# Check version
135
-
rmcp version
136
+
rmcp --version
136
137
137
-
# Run with specific configuration
138
-
rmcp start --transport stdio --port 3000
138
+
# Advanced server configuration
139
+
rmcp serve --log-level DEBUG --read-only
140
+
141
+
# List available tools and capabilities
142
+
rmcp list-capabilities
139
143
```
140
144
141
145
### Programmatic Usage
142
146
143
147
```python
144
-
import asyncio
145
-
from rmcp import MCPServer
146
-
147
-
asyncdefmain():
148
-
server = MCPServer()
149
-
await server.start()
148
+
# RMCP is primarily designed as a CLI MCP server
149
+
# For programmatic R analysis, use the MCP protocol:
150
+
151
+
import json
152
+
import subprocess
153
+
154
+
# Send analysis request to RMCP server
155
+
request = {
156
+
"tool": "linear_model",
157
+
"args": {
158
+
"formula": "y ~ x",
159
+
"data": {"x": [1, 2, 3], "y": [2, 4, 6]}
160
+
}
161
+
}
150
162
151
-
asyncio.run(main())
163
+
# Start server and send request via stdin
164
+
proc = subprocess.Popen(['rmcp', 'start'],
165
+
stdin=subprocess.PIPE,
166
+
stdout=subprocess.PIPE,
167
+
stderr=subprocess.PIPE,
168
+
text=True)
169
+
result, _ = proc.communicate(json.dumps(request))
170
+
print(result)
152
171
```
153
172
154
173
### API Examples
@@ -209,10 +228,12 @@ RMCP includes comprehensive testing with realistic scenarios:
209
228
# Run all user scenarios (should show 100% pass rate)
210
229
python tests/realistic_scenarios.py
211
230
212
-
# Run development tests
213
-
./src/rmcp/scripts/test.sh
231
+
# Run development test script
232
+
bash src/rmcp/scripts/test.sh
214
233
```
215
234
235
+
**Current Test Coverage**: 100% success rate across 4 realistic user scenarios covering business analysis, economics research, data science, and academic research use cases.
236
+
216
237
## ποΈ Architecture
217
238
218
239
RMCP is built with production best practices:
@@ -257,7 +278,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
257
278
258
279
## π Support
259
280
260
-
- π **Documentation**: Check the examples in `/examples`
281
+
- π **Documentation**: See [Quick Start Guide](examples/quick_start_guide.md) for working examples
0 commit comments