Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-javalenciacai-mcp-reportia": {
"command": "npx",
"args": [
"-y",
"@james.valencia/mcp-reportia"
],
"env": {
"REPORTIA_BASE_URL": "<VALUE>",
"REPORTIA_TOKEN": "<YOUR_VALUE>",
"REPORTIA_COOKIE": "<YOUR_VALUE>",
"REPORTIA_EMAIL": "<VALUE>",
"REPORTIA_PASSWORD": "<YOUR_VALUE>",
"REPORTIA_COMPANY_ID": "<VALUE>",
"REPORTIA_TIMEOUT_MS": "30000",
"REPORTIA_DOWNLOAD_DIR": "./downloads",
"REPORTIA_USER_AGENT": "mcp-reportia/0.1.0",
"REPORTIA_MAX_DOWNLOAD_BYTES": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| REPORTIA_BASE_URL | Yes | Base URL of the Reportia API, without trailing slash (e.g., https://reportia.example.com). Required. |
| REPORTIA_TOKEN secret | No | Bearer token for authentication. Alternative to email/password login. |
| REPORTIA_COOKIE secret | No | Pre-issued Reportia session cookie (e.g. connect.sid=s%3A...). For upstream callers that already hold the resolved user's session and want the child to authenticate as that user without re-login. Mutually exclusive with REPORTIA_TOKEN. Skips /api/auth/login and /api/auth/logout. |
| REPORTIA_EMAIL | No | Email for session login (cookie). Used with REPORTIA_PASSWORD. |
| REPORTIA_PASSWORD secret | No | Password for session login (cookie). Used with REPORTIA_EMAIL. |
| REPORTIA_COMPANY_ID | No | Default companyId when the tool accepts it. Positive integer. |
| REPORTIA_TIMEOUT_MS | No | HTTP request timeout in milliseconds. Default: 30000 |
| REPORTIA_DOWNLOAD_DIR | No | Directory where downloaded binaries (Excel/PDF exports) are saved. Default: ./downloads |
| REPORTIA_USER_AGENT | No | User-Agent header for each request. Default: mcp-reportia/0.1.0 |
| REPORTIA_MAX_DOWNLOAD_BYTES | No | Maximum bytes for a single binary download (default 104857600 = 100MB). |