nhcx-payer-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nhcx-payer-mcpApprove preauth case 2026072210000472"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nhcx-payer-mcp
MCP server to simulate NHCX payer-side actions. After a provider (e.g., Nice HMS) submits a preauth or claim to NHCX, use this tool to act as the mock payer — approve, reject, query, or forward cases through the full payer workflow.
Designed for external integrators testing their NHCX provider integration. No more dependency on NHA teams for payer-side workflow actions.
Quickstart
# 1. Set your credentials (required)
export NDHM_CLIENT_ID=SBX_000XXX
export NDHM_CLIENT_SECRET=your-sandbox-secret
# 2. Configure your test defaults (optional but recommended)
export PAYER_ID=1518
export SENDER_CODE=1000000001
export MEMBER_ID=your-test-patient-id
# 3. Run via npx (no install needed)
npx nhcx-payer-mcp
# Or install globally
npm install -g nhcx-payer-mcp
nhcx-payer-mcpRelated MCP server: Constructoo MCP Server
MCP Host Configuration
Add to your MCP host (Claude Desktop, VS Code, etc.):
{
"mcpServers": {
"nhcx-payer": {
"command": "npx",
"args": ["nhcx-payer-mcp"],
"env": {
"NDHM_CLIENT_ID": "SBX_000XXX",
"NDHM_CLIENT_SECRET": "your-sandbox-secret",
"PAYER_ID": "1518",
"SENDER_CODE": "1000000001",
"MEMBER_ID": "your-test-patient-id"
}
}
}
}Environment Variables
Required
Variable | Description |
| ABDM gateway client ID (sandbox: |
| ABDM gateway client secret |
Optional — Defaults
Variable | Default | Description |
|
| ABDM gateway auth URL |
|
| Environment: |
|
| Your payer code (used as |
| — | Default provider/sender code for testing |
| — | Default patient ABHA/PMJAY member ID for testing |
|
| API request timeout in milliseconds |
|
| Auto-retries on transient errors (5xx, network) |
|
| Set to |
Optional — URL Overrides
Override individual API base URLs (takes precedence over NHCX_ENV):
Variable | Description |
| Base URL for get/user-role endpoint |
| Base URL for process/case endpoint |
Tools
nhcx_validate_config
Validate your setup. Checks all env vars, tests authentication, and verifies API URL reachability. Run this first.
Input: (none)
Output: { ok, result: { valid, issues[], config, connectivity } }nhcx_login
Authenticate with ABDM gateway V3 and cache a token (15 min). All tools auto-authenticate — this is a convenience for connectivity checks.
Input: (none)
Output: { ok, result: { clientId, tokenPrefix, cachedFor } }nhcx_get_user_role
Get the current payer role and allowed actions for a case. Always call this before processing.
Input: caseId (required), payerId (optional, default from env)
Output: { ok, result: { caseId, role, allowedActions[], rawResponse } }nhcx_process_case
Execute a payer action on a case. The usecase is derived automatically from the action. Valid actions are validated before the API call.
Input: caseId (required)
action (required) — Approve, Reject, Query, Forward, Pending,
cpdApprove, cpdReject, iQuery
senderCode (required) — provider/sender code
memberId (required) — patient ABHA/PMJAY ID
receiverCode (optional, default from env)
remarks (optional, default "ok")
correlationId (optional, auto-generated)
Output: { ok, result: { caseId, action, usecase, role, correlationId, rawResponse } }nhcx_workflow
Show the full payer workflow with steps, usecase per step, roles, and allowed actions.
Input: (none)
Output: { ok, result: { workflow: [...] } }Payer Workflow
Step | Usecase | Role | Actions |
0 | PREAUTH | PPD-Trust | Approve, Reject, Query |
1 | CLAIM | CEX-Trust | Forward |
2 | CLAIM | CPD-Trust | Pending, cpdApprove, cpdReject |
3 | Medical Audit Committee | Medical Audit Committee | Approve, Reject, iQuery |
4 | CLAIM | ACO-Trust | Approve, Reject, Pending |
5 | CLAIM | SHA-Trust | Approve, Reject, Pending |
6 | Claim Review Committee | Claim Review Committee | Approve, Reject, Pending |
Testing Workflow Example
Validate config:
nhcx_validate_configCheck role:
nhcx_get_user_role(caseId: "2026072210000472")Process case:
nhcx_process_case(caseId: "...", action: "Approve", senderCode: "...", memberId: "...")
For CLAIM workflow, repeat steps 2-3 through all 6 steps in sequence.
Troubleshooting
"NDHM_CLIENT_ID and NDHM_CLIENT_SECRET must be set" Set both env vars. For sandbox testing, get credentials from NHA.
"Unknown action"
Action names are case-sensitive. Use exact casing: Approve, Reject, Query, Forward, Pending, cpdApprove, cpdReject, iQuery.
"HTTP 401" or auth errors
Your credentials are wrong or expired. Run nhcx_validate_config to check.
Tool hangs
Check NHCX_TIMEOUT — default is 30s. Set DEBUG=true for request logging.
Sandbox URLs changed
Override with NHCX_USER_ROLE_URL and NHCX_PROCESS_CASE_URL env vars.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceThis MCP server provides a tool to generate manual test cases in Markdown or CSV format from documentation files and custom rules. It supports text and PDF inputs and can leverage LLM sampling to automate the creation of detailed test scenarios.
- Flicense-qualityDmaintenanceMock MCP server for validating Constructoo Copilot data access, exposing read-only tools like counting customer properties, retrieving project status, and fetching appointments.

mock-llm-mcpofficial
Alicense-qualityDmaintenanceMCP server to mock OpenAI, Anthropic, and Google Gemini responses for testing AI integrations without real API keys or token spend.MIT- FlicenseCqualityCmaintenanceMCP server that exposes the OpenMRS/Bahmni REST API as tools for Claude to interact with Bahmni instances.19
Related MCP Connectors
MCP server for medicare-coverage
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Hosted MCP for denial, prior auth, reimbursement, workflow validation, batch scoring, and feedback.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/umeshramya/nhcx-payer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server