Fax MCP Server
Send faxes from Claude, ChatGPT and other AI apps. Add GotFreeFax to your app once, then ask it to “send a fax”.
Server URL
How you can use it
| What you want | What you need | Works in |
|---|---|---|
| Send a free fax: up to 3 pages, 2 a day, US and Canada | Nothing. Add the server URL to your app: no account, login or token. | Every app |
| Fax from your prepaid balance in a chat app | Log in to GotFreeFax when the app asks. No token. | Claude, ChatGPT |
| Fax from your prepaid balance in a coding tool or your own code | Your API token, sent in a header | Claude Code, Codex, Cursor, VS Code, scripts |
Set up in three steps
Step 1. Add GotFreeFax to your app
Open your app below. Already added it? Follow your app’s instructions to update the existing GotFreeFax connection.
Claude claude.ai, Claude Desktop, mobile
- Go to Customize → Connectors, click + Add, then Add custom connector. Team and Enterprise admins add it under Organization settings → Connectors.
- Enter a name (for example GotFreeFax) and the URL
https://www.gotfreefax.com/mcp. - Under Authentication, choose Sign in when needed. Claude marks No sign-in as Detected because free faxes need no account; choose Sign in when needed anyway, so you can also use a prepaid balance.
- Under OAuth client, choose Register automatically. Claude preselects Use Claude’s published identity as Recommended, but GotFreeFax doesn’t support that yet and signing in would fail.
- Leave Request headers empty and click Add. Claude’s Free plan allows one custom connector.
Using your prepaid balance: nothing more to set up. Free faxes work without signing in. The first time Claude needs your prepaid account, it shows a Connect button: log in to GotFreeFax, choose Allow, and Claude continues. No token is needed. These settings can’t be changed on an existing connector, so if you added GotFreeFax with No sign-in or with Claude’s published identity, remove it and add it again. You can disconnect Claude at any time from My Account.
ChatGPT
- Go to Plugins, click +, then Add custom MCP server.
- Enter a name (for example GotFreeFax). Under Connection, keep Server URL and enter
https://www.gotfreefax.com/mcp. - Under Authentication, choose OAuth or no authentication.
- Tick I understand and want to continue, then click Create as a plugin.
Whether custom MCP servers are available depends on your plan and workspace settings; see OpenAI’s guide.
Free faxes work without signing in. When ChatGPT needs your prepaid account, it asks you to log in to GotFreeFax and choose Allow. No token is needed, and you can disconnect ChatGPT at any time from My Account. If you only want free faxes, No authentication works too.
For a prepaid balance these apps send your API token in a header. Sign in to My Account
to copy the setup for your app with your token filled in, or replace YOUR_TOKEN below. Keep the token out of
files you commit or share. Leave the header out for free faxes only.
Claude Code
# Free faxes
claude mcp add --transport http gotfreefax https://www.gotfreefax.com/mcp
# With your account (already added? run: claude mcp remove gotfreefax)
claude mcp add --transport http gotfreefax https://www.gotfreefax.com/mcp \
--header "Authorization: Bearer YOUR_TOKEN"
Codex CLI and IDE extension
For a new connection, add this entry to ~/.codex/config.toml.
If [mcp_servers.gotfreefax] already exists, update that entry instead. Start a new Codex session after saving.
[mcp_servers.gotfreefax]
url = "https://www.gotfreefax.com/mcp"
# With your account, uncomment one of these:
# http_headers = { "Authorization" = "Bearer YOUR_TOKEN" }
# bearer_token_env_var = "GOTFREEFAX_TOKEN" # the variable holds YOUR_TOKEN, without "Bearer "
To add your account to an existing setup, put the line inside the [mcp_servers.gotfreefax] entry you
already have. A second [mcp_servers.gotfreefax] makes the whole file invalid. Use
bearer_token_env_var if the config file is shared or checked into a repository, so the token stays out of it.
Cursor
Add this to your user configuration at ~/.cursor/mcp.json. If it already contains servers, add or replace
only the gotfreefax entry inside mcpServers. Leave out headers for free faxes only.
For a shared project configuration at .cursor/mcp.json, use
"Bearer ${env:GOTFREEFAX_TOKEN}" as the value and set GOTFREEFAX_TOKEN to your token in
your environment.
{
"mcpServers": {
"gotfreefax": {
"url": "https://www.gotfreefax.com/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
VS Code
Run MCP: Open User Configuration and add this configuration. If the file already contains servers,
add or replace the gotfreefax entry inside servers and merge the token prompt into inputs.
Leave out inputs and headers for free faxes only.
VS Code asks for your token the first time the server starts and stores it securely.
This example can also go in a project’s .vscode/mcp.json because it contains a prompt, not your token.
{
"inputs": [
{ "type": "promptString", "id": "gotfreefax-token", "description": "GotFreeFax token", "password": true }
],
"servers": {
"gotfreefax": {
"type": "http",
"url": "https://www.gotfreefax.com/mcp",
"headers": { "Authorization": "Bearer ${input:gotfreefax-token}" }
}
}
}
Claude Desktop with a token Node.js, mcp-remote
Only if you would rather give Claude a token than sign in. If Claude’s Add custom connector dialog
offers Request headers, the simpler way is to choose No sign-in there and add a header
named Authorization with the value Bearer YOUR_TOKEN. Otherwise use the setup below.
To use a prepaid balance in Claude Desktop when request headers aren’t offered, or for any client that only runs
local (stdio) servers. Needs Node.js; the
mcp-remote package bridges the app to the remote endpoint. Open claude_desktop_config.json
(Settings → Developer → Edit Config), add or replace the gotfreefax entry inside mcpServers,
and restart Claude Desktop. Keep any other server entries. Leave out the --header pair and env
for free faxes only.
{
"mcpServers": {
"gotfreefax": {
"command": "npx",
"args": [
"mcp-remote",
"https://www.gotfreefax.com/mcp",
"--header",
"Authorization:${GOTFREEFAX_AUTH}"
],
"env": {
"GOTFREEFAX_AUTH": "Bearer YOUR_TOKEN"
}
}
}
}
Other clients and agents
Any client that speaks MCP over Streamable HTTP can connect to https://www.gotfreefax.com/mcp,
adding Authorization: Bearer YOUR_TOKEN to use a prepaid balance. Agents that call the endpoint with
plain HTTP can follow the Examples: every call is a POST /mcp with a
JSON-RPC envelope. A client that supports OAuth sign-in for MCP can use that instead of a
token; see For Developers.
Step 2. Ask it to send a fax
For example: “Send a free fax to [recipient’s fax number] with the text ‘Hello!’.” Give your name and email when asked. To use your prepaid balance, say so: “Fax this PDF to [fax number] from my GotFreeFax account.”
Step 3. Confirm
- Free fax: open the confirmation link we email you. Your fax sends after you click it.
- Prepaid balance: the first time, Claude or ChatGPT asks you to log in to GotFreeFax and choose Allow. Apps set up with your token send straight away.
Free or prepaid
| Free | Prepaid balance | |
|---|---|---|
| You need | Nothing | A GotFreeFax prepaid account |
| Limits | 3 pages per fax, 2 faxes a day | Your page balance: one credit per page |
| Sends to | US and Canada | US and Canada |
| Before it sends | You click a link we email you | Nothing: it sends when you ask |
- No account yet? Ask your AI to buy fax credits (it gives you a PayPal link), or buy credits on the site.
- Apps you sign in from can send faxes from your page balance and see your balance and sent faxes. They never see your PIN and can’t change your account. Disconnect one at any time from My Account; it stops working at once.
- Your API token holds your account number and PIN, so keep it private. It changes when you change your PIN.
For developers
Calling the server from your own code or agent? The reference below has the endpoint, authentication, each tool and request examples. For plain REST, see the Fax REST API.
Developer reference: endpoint, authentication, tools, examples
Endpoint and authentication
/mcp
Free tools: no auth
Account tools: sign-in or token
| Endpoint | https://www.gotfreefax.com/mcp |
| Transport | Streamable HTTP (JSON-RPC 2.0 over POST) |
| Protocol Versions | 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 (the server answers initialize with the version your client asks for, or with 2025-11-25 if it asks for any other). If your client sends the MCP-Protocol-Version header on later requests, it must name one of these four. |
| Content-Type | application/json |
| Authentication | None for initialize, tools/list and the free tools. Account tools: an OAuth 2.1 access token, or Authorization: Bearer <token> with the API token. |
OAuth sign-in. An account tool called without a valid login answers 401 with a
WWW-Authenticate header that names
https://www.gotfreefax.com/.well-known/oauth-protected-resource/mcp. From there a client finds the
authorization server: OAuth 2.1 authorization code flow with PKCE (S256), dynamic client registration, scope
gff.fax. The access token it receives is separate from the API token below, and the account
holder can revoke it.
The API token: create it yourself
The token is your account number and PIN encoded in Base64. Combine them with a colon separator, then encode the result:
Token = base64("ACCOUNT_NUMBER:PIN")
Example:
Account Number: 1234567890
PIN: 5678
Combined: 1234567890:5678
Base64 Token: MTIzNDU2Nzg5MDo1Njc4
Include the token in the Authorization header of each request that uses your prepaid account:
Authorization: Bearer MTIzNDU2Nzg5MDo1Njc4
Tools
| Tool | Description | Account needed |
|---|---|---|
send_fax | Send a fax with file attachments (up to 10 files) | Yes |
check_fax_status | Check delivery status of a fax by job_id | No |
list_sent_faxes | List faxes previously sent by the authenticated account (paginated, most recent first) | Yes |
get_account_balance | Get page and dollar balance for the authenticated account | Yes |
purchase_credits | Start a prepaid credit purchase. Returns a PayPal payment URL. Authenticated → credits land on your account; unauthenticated → creates a new prepaid account (or loads an existing one matched by email). | Optional |
send_free_fax | Send a free fax (max 3 pages, 2 per email/IP per day). The sender must click a confirmation link emailed to sender_email before the fax actually sends. If the document exceeds the page limit, the response suggests using purchase_credits. | No |
list_supported_formats | List accepted file types | No |
tools/list returns each tool with a display title and
annotations. The four lookup tools (check_fax_status,
list_sent_faxes, get_account_balance, list_supported_formats)
are marked read-only. The three that act for you (send_fax, send_free_fax,
purchase_credits) are marked as not read-only, so your AI app can ask you before it
runs one. send_fax and send_free_fax are also marked destructive:
send_fax uses page credits and sends the fax as soon as it is called, and
send_free_fax emails its confirmation link at once (the fax itself is sent only after
you click it). A purchase is charged only after you approve it at PayPal.
Examples
Initialize Session
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer MTIzNDU2Nzg5MDo1Njc4" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "1.0" }
}
}'
// Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": { "tools": {} },
"serverInfo": { "name": "GotFreeFax", "version": "1.1.0" }
}
}
The server keeps no session, so initialize is optional for plain HTTP callers:
tools/list and tools/call work on their own.
List Tools
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/list" }'
Send a Fax
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer MTIzNDU2Nzg5MDo1Njc4" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "send_fax",
"arguments": {
"fax_number": "8885551234",
"files": [
{
"filename": "letter.pdf",
"content": "JVBERi0xLjQK..."
}
]
}
}
}'
// Response:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"job_id\": \"ABCDEFGHIJ\",\n \"message\": \"Fax queued successfully to 8885551234\"\n}"
}
],
"isError": false
}
}
Send a Fax from a Link
"arguments": {
"fax_number": "8885551234",
"attachments": [
{
"download_url": "https://example.com/letter.pdf",
"file_id": "letter-1",
"file_name": "letter.pdf"
}
]
}
List Sent Faxes
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer MTIzNDU2Nzg5MDo1Njc4" \
-d '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "list_sent_faxes",
"arguments": { "limit": 20, "offset": 0 }
}
}'
// Result content text (JSON):
{
"total_count": 42,
"limit": 20,
"offset": 0,
"faxes": [
{
"job_id": "ABCDEFGHIJ",
"fax_number": "8885551234",
"status": "success",
"page_count": 2,
"service_type": "PrepaidAccount",
"created_at": "2025-01-15T10:00:00Z",
"completed_at": "2025-01-15T10:30:00Z",
"detail": ""
}
]
}
Includes all paid faxes (prepaid + pay-per-fax + international) tied to the account, ordered most recent first. Free anonymous sends are not included. Default limit is 20, max 100.
Purchase Credits (authenticated)
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer MTIzNDU2Nzg5MDo1Njc4" \
-d '{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "purchase_credits",
"arguments": { "service_type": "prepaid20" }
}
}'
// Result content text (JSON):
{
"status": "success",
"order_number": "ABCDEFGHIJ",
"payment_url": "https://www.gotfreefax.com/paypal/payment.aspx/ABCDEFGHIJ",
"service_type": "prepaid20",
"amount": 24.95,
"page_credit": 250,
"currency": "USD",
"new_account": false,
"message": "Visit the payment URL to complete your purchase. Credits will be added to your authenticated account after payment."
}
Purchase Credits (new account)
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "purchase_credits",
"arguments": {
"service_type": "prepaid10",
"email": "alice@example.com",
"name": "Alice"
}
}
}'
// Result content text (JSON):
{
"status": "success",
"order_number": "KLMNOPQRST",
"payment_url": "https://www.gotfreefax.com/paypal/payment.aspx/KLMNOPQRST",
"service_type": "prepaid10",
"amount": 12.95,
"page_credit": 100,
"currency": "USD",
"new_account": true,
"message": "Visit the payment URL to complete your purchase. Your account number and PIN will be emailed to alice@example.com after payment."
}
Available service_type values:
prepaid10 (100 pages, $12.95),
prepaid20 (250 pages, $24.95),
prepaid50 (800 pages, $59.95),
intprepaid50 ($49.95 international balance),
intprepaid100 ($99.95),
intprepaid200 ($199.95).
The payment URL is shareable — the user opens it in any browser to complete payment via PayPal.
For unauthenticated purchases, the account email is the unique key: if the email already exists, credits are loaded onto that account; if not, a new account is created and the credentials are emailed after payment.
Send Free Fax
curl -X POST https://www.gotfreefax.com/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "send_free_fax",
"arguments": {
"fax_number": "8885551234",
"sender_name": "Alice",
"sender_email": "alice@example.com",
"receiver_name": "Bob",
"text": "Hello Bob, this is a free fax."
}
}
}'
// Happy-path result content text (JSON):
{
"status": "confirmation_required",
"job_id": "ABCDEFGHIJ",
"sender_email": "alice@example.com",
"page_count": 1,
"message": "An email was sent to alice@example.com with a confirmation link. The fax will not actually send until the user clicks that link. Use check_fax_status with the returned job_id to track progress."
}
// Page-limit-exceeded result (isError: true):
{
"status": "page_limit_exceeded",
"page_count": 7,
"free_limit": 3,
"suggestion": "Free faxes are limited to 3 pages... To send a fax this size, call purchase_credits with service_type \"prepaid10\"...",
"next_tool": "purchase_credits"
}
Free fax requires no authentication, but the sender must complete an email click-confirmation
step before the fax is actually queued. Limits: 3 pages total across text and
files, 3 files max, and 2 sends per email and 2 per IP per day.
The daily limit is enforced at confirmation-click time (matching the web flow) — submission
always succeeds, but a fax may still be rejected when the user clicks the email link if the
daily quota has been reached by then. The agent can detect that by calling
check_fax_status with the returned job_id after the user reports
clicking. If the user needs to send a larger fax or beyond the daily limit, suggest
purchase_credits to set up a prepaid account.
Error Codes
The MCP Server uses standard JSON-RPC 2.0 error codes:
| Code | Description |
|---|---|
-32700 | Parse error (malformed JSON) |
-32600 | Invalid request (missing method; a JSON-RPC batch sent under a protocol version other than 2025-03-26; or a message inside a batch that is not a valid JSON-RPC 2.0 request or notification) |
-32601 | Method not found |
-32602 | Invalid parameters (a tools/call with no tool name, or with the name of a tool that doesn’t exist) |
-32000 | Unsupported protocol version. Returned with HTTP status 400 when the MCP-Protocol-Version header names a version the server doesn’t support; the message lists the versions it does. Send initialize to agree on one. |
Tool-specific errors (authentication failure, invalid fax number, insufficient balance, etc.)
are returned as a successful JSON-RPC response with isError: true in the result content.
Supported File Formats & Limits
Maximum 10 files per fax request (3 for a free fax).
send_fax and send_free_fax take files two ways, and a fax can mix them:
files: the file’s content, base64-encoded, with itsfilename.-
attachments: a link to the file, as{"download_url": "https://...", "file_id": "..."}with optionalmime_typeandfile_name. This is the form ChatGPT uses for files attached to a conversation (the tools name it in_meta["openai/fileParams"]). We download the file when the fax is submitted: the link must behttpson the public internet, and a fax’s linked files can be up to 50 MB in all (15 MB for a free fax). A linked file’s type is read from its contents, not its name.
| Format | Extensions |
|---|---|
| Adobe PDF | |
| Microsoft Word | doc, docx |
| JPEG Image | jpg, jpeg |
| Plain Text | txt |
Need help? Contact us at gotfreefax.com/contact.