Back to Directory/Developer Tools

io.github.cletcher/chaprola

Serverless API backend: query, JOIN, pivot, batch ops, email, FHIR, programs via HTTP.

Developer ToolsJavaScriptv1.4.3

@chaprola/mcp-server

MCP server for Chaprola — the agent-first data platform.

Gives AI agents 40 tools for structured data storage, querying, web search, URL fetching, scheduled jobs, and execution through the Model Context Protocol.

Quick Start

Claude Code

claude mcp add chaprola-mcp -e CHAPROLA_USERNAME=yourusername -e CHAPROLA_API_KEY=chp_yourkey -- npx @chaprola/mcp-server

Note: After installing, restart Claude Code to load the MCP server. The server description and tools will then be available to Claude.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "chaprola": {
      "command": "npx",
      "args": ["@chaprola/mcp-server"],
      "env": {
        "CHAPROLA_USERNAME": "yourusername",
        "CHAPROLA_API_KEY": "chp_yourkey"
      }
    }
  }
}

VS Code / Copilot

Add to .vscode/mcp.json:

{
  "servers": {
    "chaprola": {
      "command": "npx",
      "args": ["@chaprola/mcp-server"],
      "env": {
        "CHAPROLA_USERNAME": "yourusername",
        "CHAPROLA_API_KEY": "chp_yourkey"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "chaprola": {
      "command": "npx",
      "args": ["@chaprola/mcp-server"],
      "env": {
        "CHAPROLA_USERNAME": "yourusername",
        "CHAPROLA_API_KEY": "chp_yourkey"
      }
    }
  }
}

Getting Credentials

# Register (returns your API key — save it immediately)
curl -X POST https://api.chaprola.org/register \
  -H "Content-Type: application/json" \
  -d '{"username": "myname", "passcode": "my-secure-passcode-16chars"}'

Or use the chaprola_register tool after connecting.

Available Tools

ToolDescription
chaprola_helloHealth check
chaprola_registerCreate account
chaprola_loginLogin (get new API key)
chaprola_check_usernameCheck username availability
chaprola_delete_accountDelete account + all data
chaprola_sign_baaSign Business Associate Agreement (PHI only)
chaprola_baa_statusCheck BAA status
chaprola_baa_textGet BAA text
chaprola_importImport JSON to Chaprola format
chaprola_import_urlGet presigned upload URL
chaprola_import_processProcess uploaded file
chaprola_import_downloadImport from URL (CSV/Excel/JSON/Parquet)
chaprola_exportExport to JSON
chaprola_listList files
chaprola_compileCompile .CS source to .PR bytecode
chaprola_runExecute .PR program
chaprola_run_statusCheck async job status
chaprola_publishPublish program for public access
chaprola_unpublishRemove public access
chaprola_reportRun published program (no auth)
chaprola_export_reportRun program and save output
chaprola_downloadGet presigned download URL
chaprola_queryFilter, aggregate, join data
chaprola_sortSort data file
chaprola_indexBuild index on field
chaprola_mergeMerge two sorted files
chaprola_optimizeHULDRA nonlinear optimization
chaprola_optimize_statusCheck optimization status
chaprola_email_inboxList emails
chaprola_email_readRead email
chaprola_email_sendSend email
chaprola_email_deleteDelete email
chaprola_searchWeb search via Brave API
chaprola_fetchFetch URL content as markdown/text/JSON
chaprola_scheduleCreate scheduled recurring job
chaprola_schedule_listList scheduled jobs
chaprola_schedule_deleteDelete scheduled job

Resources

The server exposes reference documentation as MCP resources:

  • chaprola://cookbook — Language cookbook with complete examples
  • chaprola://endpoints — All 40 API endpoints
  • chaprola://auth — Authentication reference
  • chaprola://gotchas — Common mistakes to avoid

Environment Variables

VariableRequiredDescription
CHAPROLA_USERNAMEYesYour registered username
CHAPROLA_API_KEYYesYour API key (format: chp_ + 64 hex chars)

HIPAA / BAA

Non-PHI data works without a signed BAA. If handling Protected Health Information (PHI), a human must review and sign the BAA first. The server includes guardrails that warn agents when the BAA is not signed.

Links

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @chaprola/mcp-server

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-cletcher-chaprola": {
      "command": "npx",
      "args": [
        "-y",
        "@chaprola/mcp-server"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@chaprola/mcp-servernpm

Compatible MCP Clients

io.github.cletcher/chaprola works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More