FxLayer for AI agents: an MCP server and open data
The guides, the RBI purpose-code reference, the FEMA deadline rules and the regulatory updates FxLayer follows are open to AI assistants. Connect any MCP client to one address, or read the same content as JSON and Markdown. Free, read-only, no sign-in.
Add FxLayer to your assistant
One address works everywhere: https://fxlayerhq.com/mcp. No authentication to set up.
Claude
On claude.ai or in Claude Desktop, open Settings › Connectors, choose Add custom connector, name it FxLayer and paste the address. In Claude Code:
claude mcp add --transport http fxlayer https://fxlayerhq.com/mcpChatGPT
Add it as a custom connector in developer mode, with the address above and no authentication. The search and fetch tools follow the shape ChatGPT's connectors and deep research expect, so FxLayer's guides can be searched and cited there.
Cursor, Windsurf and other clients
Most clients take a JSON entry:
{
"mcpServers": {
"fxlayer": { "url": "https://fxlayerhq.com/mcp" }
}
}VS Code: {"servers": {"fxlayer": {"type": "http", "url": "https://fxlayerhq.com/mcp"}}}
Clients that only run local servers
Bridge it over stdio with the open-source mcp-remote package:
npx -y mcp-remote https://fxlayerhq.com/mcpOr call it directly: every request is one JSON-RPC message in a POST, answered as JSON.
What the server answers
Every tool is read-only. Answers carry the address of the page they come from and the date the rule was last checked, so an assistant can cite them.
searchSearch FxLayer's guides and purpose codesSearch FxLayer's compliance guides and the RBI purpose-code reference with plain words (for example 'EDPMS entry not closed', 'Form 145 Part C', 'software export purpose code'). Returns ids for `fetch`.
Arguments: query
fetchRead a guide or a purpose-code pageThe full text (Markdown) of a guide or a purpose-code page, by the id `search` returned (guide:<slug>, code:<code>) or by its address on fxlayerhq.com.
Arguments: id
find_purpose_codesFind the RBI purpose code for a paymentRBI purpose codes that fit a payment or receipt described in plain words, best first, each with its bank form (Form A1 / A2), Form 145 / 146, income-tax nature, GST and reporting.
Arguments: query, direction (optional), limit (optional)
get_purpose_codeOne RBI purpose code in fullOne RBI purpose code (e.g. P0802, S1006) with the reasoning: which bank form, income-tax nature and Form 145 / 146 part, GST, reporting, cautions and the matching code for the other direction.
Arguments: code
export_realisation_deadlineExport realisation deadlineThe last day to realise and repatriate an export's proceeds under FEMA (nine months from the date of export, twelve when invoiced in rupees, from 1 October 2026), with the rule and its source.
Arguments: export_date, currency (optional), kind (optional)
services_edf_due_dateMonthly services EDF due dateWhen the monthly EDF for a services export invoice is due (30 days from the end of the month of invoicing, for invoices from 1 October 2026), with the rule and its source.
Arguments: invoice_date
regulatory_updatesRecent RBI, FEMA and tax changesThe RBI / FEMA / income-tax / GST changes FxLayer follows: the rule, when it takes effect, its source and what changed in FxLayer. Newest first.
Arguments: query (optional), limit (optional)
about_fxlayerAbout FxLayerWhat FxLayer is, its modules, plans with starting prices, and where to sign up or read more.
Arguments: none
The guides and the purpose-code pages are also offered as MCP resources (Markdown), with a template for any code: https://fxlayerhq.com/purpose-codes/{code}.md.
One call from a terminal
curl -s https://fxlayerhq.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"get_purpose_code","arguments":{"code":"P0802"}}}'
The answer is the code's record: its bank form, income-tax nature and Form 145 / 146 part, GST, reporting, cautions and the matching code for money going the other way.
The same content as open data
Purpose codes as JSON
/api/public/purpose-codes lists every code (?direction=inward|outward, ?q=plain words); /api/public/purpose-codes/{code} gives one with its reasoning.
Markdown copies
Every guide and purpose-code page at its address plus .md, for example /insights/what-is-edpms.md or /purpose-codes/p0802.md.
llms.txt
/llms.txt maps the site for language models; /llms-full.txt has every guide and the purpose-code reference in one file.
Regulatory updates
/api/public/updates: each RBI, FEMA, income-tax and GST change FxLayer follows, with the date it takes effect and its source. The page is /updates.
Sitemap
/sitemap.xml lists every public page with the date it last changed. New and changed pages are also announced through IndexNow.
Using it
Quote it with a link to the page you used. It is general information on the rules as they stood on the date shown, not advice for a particular case.
