Use with AI assistants (MCP) Last updated: 2026-12-02
The ediFabric MCP server lets AI assistants such as Claude, Cursor, GitHub Copilot and Codex work with X12 and HIPAA EDI: validate it and explain the errors, convert EDI to JSON and back, generate 999 and 997 acknowledgments, split files, and describe any transaction's structure, through the Model Context Protocol (MCP). It comes in two forms, with the same tools:
- ediFabric EDI Toolkit Cloud, a remote server at
https://mcp.edifabric.com/mcp. Nothing to install: connect your assistant to it and sign in with your ediFabric account. - ediFabric EDI Toolkit, a local server that runs ediFabric Native on your machine and works on your files there.
How it works
Up to 60,000 characters of EDI a call. Counts towards your plan's operations.
Set up the Cloud server@edifabric/mcp, with ediFabric NativeYour files stay on your machine. Only the license check and model downloads go online.
Set up the local serverCloud or local?
| Cloud ediFabric EDI Toolkit Cloud | Local ediFabric EDI Toolkit | |
|---|---|---|
| Install | Nothing: add https://mcp.edifabric.com/mcp to your assistant | Node.js and the @edifabric/mcp package, or Claude Desktop's one-click bundle |
| Works in | Claude on the web, desktop and mobile, Claude Code, and other assistants that connect to remote MCP servers | Claude Code, Claude Desktop, Cursor, VS Code, Codex and other assistants that start local MCP servers |
| Sign-in | Your ediFabric account, or your serial in a header | Your serial, or the demo serial |
| Your EDI | Sent as text to the ediFabric Cloud API, up to 60,000 characters a call, and the results come back to the assistant | Read and written on your machine, in the folders you allow, at any size. Only the license check and model downloads go online |
| Best for | Checking and explaining a claim, order or invoice, and trying the tools without installing anything | Files on disk, batches, large files, automation, and EDI that must stay on your machine |
Both count operations against your plan in the same way. You can use both: give them different names in your assistant, ediFabric EDI Toolkit Cloud and ediFabric EDI Toolkit, so you and the assistant can tell them apart.
Tools
| Tool | What it does |
|---|---|
validate_edi | Validates an EDI file up to HIPAA SNIP level 4, and returns each error with the segment it is in |
parse_edi | Converts an EDI file to JSON, saves it next to the file, and summarizes the interchanges and transaction sets |
build_edi | Converts EDI JSON to an EDI file. On the local server, it also merges a folder of parts from split_edi back into one file |
acknowledge_edi | Saves a 999 or 997 for an X12 file, with a TA1 when the interchange asks for one |
split_edi | Saves each transaction set in a file as its own EDI file. On the local server, with a splitter, it splits a file by transaction set or by a repeating loop, such as the claims of an 837, into JSON parts. See Split and merge |
describe_spec | Describes a transaction from the model the other tools use: its loops and segments, one segment's elements, codes and rules, or a JSON skeleton to fill in for build_edi |
get_status | Shows the license and how it's checked, where models come from and which folders the tools can use |
On the local server, the tools work on file paths, so EDI files don't pass through the conversation, and the tools that save files save them next to yours. On the remote server, they take the EDI or JSON as text and return the results instead of saving files. Both detect the format from the EDI. ediFabric Native supports X12 and HIPAA today; more standards follow.
ediFabric EDI Toolkit Cloud Cloud
The remote server, at https://mcp.edifabric.com/mcp. It runs the same tools on the ediFabric Cloud API, so there's nothing to install or update: your assistant sends the EDI or JSON as text, up to 60,000 characters a call, and gets the results back. For files on disk, larger files or batches, use the local server.
Jump to: Claude · Claude Code · ChatGPT and Codex · With your serial · Plans · Your data · Limits · Troubleshooting
Claude (web, desktop and mobile)
The Cloud server is listed in Claude's directory: ediFabric EDI Toolkit Cloud. Add it once, and it's available wherever you use Claude:
- Open its directory page, signed in to Claude, and connect it.
- A page asks you to allow Claude to use the ediFabric tools: select Allow and sign in, then sign in with your ediFabric account, the one on Your account.
- In a chat, select + at the lower left of the message box, then Connectors, and turn on the connector. Then attach or paste the EDI and ask, for example, Validate this at SNIP level 4 and explain each error.
If your organization doesn't allow connectors from the directory, add it as a custom connector instead: on Claude's Plugins page (Settings > Connectors in earlier versions), select Add > Add custom connector, and enter the name ediFabric EDI Toolkit Cloud and the URL https://mcp.edifabric.com/mcp. Claude detects the sign-in: Sign in now, with Use Claude's published identity. Leave Request headers empty, connect, and sign in as above.
Claude Code
From a terminal:
claude mcp add --transport http edifabric-cloud https://mcp.edifabric.com/mcpThen, in Claude Code, type /mcp, select edifabric-cloud and Authenticate, and sign in with your ediFabric account in the browser. Claude Code reads the files you name and sends their text to the tools.
ChatGPT and Codex
The Cloud server is also in the plugin directory that ChatGPT and Codex share: ediFabric EDI Toolkit Cloud.
- Open its directory page, signed in to ChatGPT, and add it.
- A page asks you to allow ChatGPT to use the ediFabric tools: select Allow and sign in, then sign in with your ediFabric account, the one on Your account.
- In a chat, type @ and choose ediFabric EDI Toolkit Cloud. Then attach or paste the EDI and ask, for example, Validate this 837P test claim at SNIP level 4 and explain each error.
In ChatGPT and Codex, use test or de-identified files, and don't send protected health information (PHI): OpenAI's directory doesn't allow plugins that process it. To mask the names, addresses and IDs in a real file first, use the Anonymize feature in EdiNation, which runs in your browser.
With your serial instead of signing in
Clients that send request headers, such as Cursor, VS Code and Claude Code, can use your serial in the Ocp-Apim-Subscription-Key header:
claude mcp add --transport http edifabric-cloud https://mcp.edifabric.com/mcp --header "Ocp-Apim-Subscription-Key: YOUR_SERIAL"In Cursor, add this to .cursor/mcp.json or ~/.cursor/mcp.json. In VS Code, the same entry goes under servers in .vscode/mcp.json, with "type": "http":
{
"mcpServers": {
"edifabric-cloud": {
"url": "https://mcp.edifabric.com/mcp",
"headers": {
"Ocp-Apim-Subscription-Key": "YOUR_SERIAL"
}
}
}
}Plans and operations
With a serial, the server uses its plan. When you sign in, it uses one of your account's active plans: Enterprise, Developer or Pay as you go first, then Enterprise Trial, then Community. The Cloud server is included in those plans, and the demo serial works with it too. Older plans don't include it: use the local server with them, or see Pricing.
Each tool call that reads or writes EDI counts as an operation of that plan, as with the local server, and Community's 250 a day include them. describe_spec and get_status don't count; get_status shows which plan the tools use.
Your data
The EDI you send is processed by ediFabric Cloud API v3, in Microsoft Azure, in memory and without being stored, and the result goes back to your assistant, which sees it as it would a local tool's result. See the Privacy Policy.
For EDI with PHI, two agreements are needed: a HIPAA Business Associate Agreement with ediFabric, available on Enterprise (ask at office@edifabric.com), and terms from your AI provider that cover PHI, because the assistant sees the EDI and the results. Without both, use the local server, which keeps your files on your machine.
Limits
Each call takes up to 60,000 characters of EDI or JSON, and returns up to 60,000 characters. When parse_edi's JSON would be longer, it returns the summary only; split_edi returns as many parts as fit, and the assistant calls it again for the rest.
Troubleshooting
- "There's no ediFabric account for this sign-in yet". Sign in once on Your account, which creates your account and offers the free Community plan, then connect again.
- "Your ediFabric plan doesn't include the remote MCP server". Your account has no active Community, Developer, Enterprise, Pay as you go or Enterprise Trial plan. Activate Community on Your account, or see Pricing.
- "Can't connect this app". The app didn't identify itself in a way the server accepts, with a Client ID Metadata Document. Connect it with your serial in a header instead, or use the local server.
- The EDI is too large. Each call takes up to 60,000 characters. Use the local server for larger files.
- Something else. Contact us through the support portal.
ediFabric EDI Toolkit Local
The local server runs ediFabric Native on your machine: the tools read and write your files there, so they never pass through the conversation. It's open source under the MIT license: edifabric-mcp on GitHub, published to npm as @edifabric/mcp.
Jump to: Before you start · Claude Code · Claude Desktop · Cursor · VS Code · Codex · Others · Configuration · Licensing · Troubleshooting
Before you start
- Node.js 18 or later, from nodejs.org, for every client except Claude Desktop's one-click bundle, which includes everything.
- A supported platform: Windows x64, Linux x64 and arm64 with glibc 2.34 or later, or macOS on Apple silicon.
- A serial, optional to start: without one, the server uses the demo serial, which has a small daily quota and isn't for production. The free Community plan gives you your own; copy it from Your account.
Your EDI files stay on your machine: the server reads and writes them locally, and only in the folders you allow. The license check and the model downloads send your serial, and the transaction type and version, never the contents of your files. The assistant sees what the tools return: summaries, validation errors with the text of the segment each error is in, and any file you ask it to read. For files with personal or health data, check that your AI provider's terms cover that data.
Claude Code
As a plugin. In a Claude Code session, add the marketplace and install the plugin. It asks for your serial and keeps it in your system's credential store, and runs the server with Node directly:
/plugin marketplace add EdiFabric/edifabric-mcp
/plugin install edifabric@edifabricAs an MCP server. From a terminal, for every project (--scope user) or only the current one (--scope project, the default):
claude mcp add edifabric --scope user -e EDIFABRIC_SERIAL=YOUR_SERIAL -- npx -y @edifabric/mcpOn Windows, outside WSL, start npx through cmd:
claude mcp add edifabric --scope user -e EDIFABRIC_SERIAL=YOUR_SERIAL -- cmd /c npx -y @edifabric/mcpFor one project folder, add a .mcp.json file to it. Claude Code asks to approve the server the next time you open the folder. This one is for Windows; on macOS and Linux, use "command": "npx" and "args": ["-y", "@edifabric/mcp"]:
{
"mcpServers": {
"edifabric": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@edifabric/mcp"
],
"env": {
"EDIFABRIC_SERIAL": "YOUR_SERIAL",
"EDIFABRIC_ALLOWED_DIRS": "C:\\EDI"
}
}
}
}The first start downloads the server and its native library, which can take up to a minute. To avoid a time-out, run npx -y @edifabric/mcp once in a terminal first, and stop it with Ctrl+C once it starts. Later starts take a couple of seconds. Check the connection by asking Claude to run get_status.
Claude Desktop
One click. Download edifabric-mcp-<version>.mcpb from the latest release, then open it in Claude Desktop in one of these ways:
- double-click the file (installing Claude Desktop registers the
.mcpbfile type); - drag the file onto the Claude Desktop window;
- in Claude Desktop, go to Settings > Extensions > Advanced settings > Install Extension... and select the file.
Claude Desktop shows the extension; select Install, then enter your serial (or leave it empty for the demo serial) and the folder with your EDI files. The bundle includes Node.js support and the native libraries for every platform, so nothing else needs installing.
From the configuration file. In Claude Desktop, open Settings, Developer, Edit Config, and add the server to claude_desktop_config.json. Restart Claude Desktop afterwards:
{
"mcpServers": {
"edifabric": {
"command": "npx",
"args": [
"-y",
"@edifabric/mcp"
],
"env": {
"EDIFABRIC_SERIAL": "YOUR_SERIAL",
"EDIFABRIC_ALLOWED_DIRS": "C:\\EDI"
}
}
}
}In Claude Desktop, give the tools full paths, such as C:\EDI\orders\po.edi.
Cursor
Add to Cursor installs it in one click. Or add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"edifabric": {
"command": "npx",
"args": [
"-y",
"@edifabric/mcp"
],
"env": {
"EDIFABRIC_SERIAL": "YOUR_SERIAL"
}
}
}
}VS Code and GitHub Copilot
Install in VS Code adds it in one click. Or add this to .vscode/mcp.json in your workspace. GitHub Copilot's agent mode then lists the tools:
{
"servers": {
"edifabric": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@edifabric/mcp"
],
"env": {
"EDIFABRIC_SERIAL": "YOUR_SERIAL"
}
}
}
}OpenAI Codex
Add this to ~/.codex/config.toml, for the Codex CLI and the Codex IDE extension:
[mcp_servers.edifabric]
command = "npx"
args = ["-y", "@edifabric/mcp"]
env = { EDIFABRIC_SERIAL = "YOUR_SERIAL" }ChatGPT connects only to MCP servers hosted on the internet, so it can't run this local server: use the Cloud server in ChatGPT instead.
Other MCP clients
Other MCP clients start the server with the same command, npx -y @edifabric/mcp, and the same environment variables. Gemini CLI (~/.gemini/settings.json), Windsurf (~/.codeium/windsurf/mcp_config.json), Cline and most others take the same mcpServers entry as Claude Desktop:
{
"mcpServers": {
"edifabric": {
"command": "npx",
"args": [
"-y",
"@edifabric/mcp"
],
"env": {
"EDIFABRIC_SERIAL": "YOUR_SERIAL"
}
}
}
}npm and the MCP Registry
The server is the npm package @edifabric/mcp. npx -y @edifabric/mcp downloads and starts it, and is what the client configurations above use. To install it once instead, and start it as edifabric-mcp:
npm install -g @edifabric/mcpThen use "command": "edifabric-mcp" with no arguments in the client configuration. The package installs the ediFabric Native library for your platform through edifabric-x12.
From version 1.2.0, the package also installs edifabric, a command with the same operations as the tools, for terminals, scripts and CI pipelines. See Use from the command line.
The server is listed in the official MCP Registry as com.edifabric/edifabric-mcp. Clients and directories that read the registry, such as VS Code's MCP gallery, show it there.
Configuration
Set these as environment variables in the client's configuration, under env:
| Variable | What it does |
|---|---|
EDIFABRIC_SERIAL | Your ediFabric serial. The default is the demo serial |
EDIFABRIC_ALLOWED_DIRS | The folders the tools can read and write, separated by ; on Windows and : elsewhere. Without it, the server uses the folders your MCP client shares, or your home folder |
EDIFABRIC_MAP | A map.json with local or custom models. See Models |
EDIFABRIC_OFFLINE | Set to true to use only the models in EDIFABRIC_MAP |
EDIFABRIC_TOKEN | A token issued for you, for machines without internet access. See Licensing and quotas |
EDIFABRIC_TOKEN_CACHE | The folder for cached tokens, or none to keep them in memory only. The default is your user cache folder |
EDIFABRIC_LIBRARY | The path to the ediFabric Native library, if it isn't the one installed with the package |
Models
Each transaction set is read and validated with a model for its type and version. By default, the server downloads the standard X12 and HIPAA models, sending the transaction type and version, never the contents of your files. describe_spec reads the same models.
To use local or custom models, such as ones you built in the EDI Spec Builder and downloaded for ediFabric Native, list them in a map.json and set EDIFABRIC_MAP to it. Each key is the transaction set and version from ST or GS, and location is relative to the map file:
{
"default": "",
"maps": {
"837:005010X222A1": {
"type": 1,
"name": "model837P.json",
"location": "."
},
"850:004010": {
"type": 1,
"name": "acme-850.json",
"location": "models"
}
}
}Transactions that aren't in the map still use the online models, unless EDIFABRIC_OFFLINE is true. See EDI models for the model format.
Split and merge
From version 1.2.0, the local server's split_edi takes a splitter, split, and splits a file with ediFabric Native's splitter, which reads it one part at a time, so large files use little memory. It splits by transaction set, or by a repeating loop, such as the claims of an 837 or the members of an 834:
| Value | What it is |
|---|---|
segment_id | ST to split by transaction set, or the first segment of a repeating loop, such as CLM for the claims (loop 2300) of an 837 |
segment_depth | The depth of that segment in the file's structure. Not needed for ST. A loop can be at more than one depth: in an 837P, claims are at depth 4 under the subscriber (loop 2000B) and at depth 5 under a patient (loop 2000C) |
loop_id | The loop the segment starts, such as 2300 |
To get the values, load one of your files in EdiNation, select the loop's first segment in the Structure tab, and copy its Splitter, which is the three values as JSON. Then ask, for example: Split claims.837 by claim with the splitter {"segment_id":"CLM","segment_depth":4,"loop_id":"2300"}.
The parts are saved in the output folder:
| File | What it holds |
|---|---|
part-000001.json, part-000002.json, ... | One transaction set or loop each, in file order, in the JSON of parse_edi |
envelope.json | The rest of the file: the interchanges, with the places the parts came from left empty |
split.json | The splitter, and for each part its file and where it goes back |
Edit the parts, or delete the ones you don't want. Then give the folder to build_edi as the input: it puts each part listed in split.json back where it came from, in that order, leaves out the parts that were deleted, and sets the trailer counts (SE01, GE01 and IEA01) to match. Validate the result with validate_edi, as deleting a part can leave a transaction without a loop it needs. The edifabric command splits and merges the same way.
The Cloud server's split_edi splits by transaction set only, and returns the parts in the conversation.
Licensing and quotas
How the license is checked depends on your plan. Set EDIFABRIC_SERIAL, and get_status shows which applies:
| Plan | How it works |
|---|---|
| Community | Each tool call that reads or writes EDI is checked online and counts towards your quota, so the server needs internet access. It allows 250 operations a day |
| Developer | The server gets a token for the machine and caches it, so operations are checked locally and a restart needs no license call. It refreshes the token by itself |
| Enterprise, Perpetual | The same, with a token that isn't limited to one machine |
| Issued token | Set EDIFABRIC_TOKEN to a token issued for you, for machines without internet access. The server makes no license calls. Without EDIFABRIC_SERIAL as well, it can only use the models in EDIFABRIC_MAP |
describe_spec and get_status don't read or write EDI, so they don't count as operations. Plans and quotas are on Pricing. The server is open source under the MIT license; ediFabric Native is licensed under the ediFabric EULA.
Try it
Ask the assistant in your own words. For example:
- Validate claims.837 at SNIP level 4 and explain each error.
- Validate every file in the inbound folder and give me a table of the results.
- Generate a 999 for every file in the inbound folder.
- Convert po.edi to JSON, change the quantity on line 2 to 12, and build it back to X12.
- Split batch.edi into one file per transaction.
- Split claims.837 by claim, remove the claims for patient Smith, build the rest back into one file and validate it.
- What does an 856 in 004010 look like? Create a sample one and validate it.
For sample files, the X12 examples have purchase orders, invoices, ship notices and HIPAA claims, remittances and enrollments.
Troubleshooting
- The server doesn't start the first time. The first start downloads the server, which can take longer than the client waits. Run
npx -y @edifabric/mcponce in a terminal, stop it with Ctrl+C, and restart the client. - A path is refused. The tools only use the allowed folders. Ask the assistant to run
get_status, which lists them, and setEDIFABRIC_ALLOWED_DIRSto add yours. - The quota is used up. The demo serial and the Community plan have daily quotas. Set
EDIFABRIC_SERIALto your own serial, or see Pricing. - No model for a transaction. Check the transaction and version in ST and GS with
describe_spec, or add a custom model withEDIFABRIC_MAP. - Something else. Open an issue on GitHub, or contact us through the support portal.
