Support > Documentation

MCP server

MCP Server for Cloud parser v4 - BETA

The Udger MCP server makes the Udger Cloud API available to AI assistants and other clients that support the Model Context Protocol (MCP External link). With it, an assistant can identify the browser, operating system and device from a User-Agent, classify an IP address, or check your Udger subscription.

What you need

  • An Udger account with an active Cloud parser subscription (prices).
  • Your access key from your Udger account.
  • An MCP client that supports remote servers over HTTP. Instructions for ChatGPT, Claude (web and desktop), Claude Code, VS Code and Cursor are below.

Connection details

ParameterValue
Server URLhttps://mcp.udger.com/v4/
TransportStreamable HTTP
AuthenticationOAuth: the client opens a page on mcp.udger.com where you enter your access key once, or the header Authorization: Bearer <your access key>

Every parse or IP lookup counts against the quota of your Udger account. Checking your account status (udger_account) is free.

If your client cannot set the Authorization header, you can send the key in the X-Udger-Access-Key: <your access key> header instead.

Do not share your access key or store it in shared repositories. Anyone who has it uses your quota.

How the OAuth sign-in works

Clients that do not let you enter a header, such as ChatGPT and Claude connectors, use OAuth:

  1. When you add the server, the client opens the page mcp.udger.com/authorize in your browser.
  2. The page shows which application is asking for access. You enter your Udger access key.
  3. The key is checked with Udger. If it is valid and the Cloud parser subscription is active, you are returned to the client and the connection is ready.

The client never sees your key in readable form. It gets a token that carries the key encrypted. The token is renewed automatically. If you change your access key in your Udger account, connected clients stop working and you add the server again.

ChatGPT

ChatGPT connects through OAuth. Custom MCP servers are available only on some ChatGPT plans, and the menu names change from time to time.

  1. In ChatGPT, open Settings → Apps & Connectors (on newer versions: Plugins). Under Advanced settings, turn on Developer mode if your version has it.
  2. Choose Create (or Add custom MCP server) and fill in:
    • Name: Udger
    • MCP server URL: https://mcp.udger.com/v4/
    • Authentication: OAuth
  3. Confirm. ChatGPT opens the Udger sign-in page. Enter your access key and choose Authorize.
  4. In a new chat, enable the Udger connector, and ask for example “Which browser is this User-Agent: …?”

Claude (claude.ai and Claude Desktop)

Claude connects through OAuth as a custom connector. You need no configuration file and no Node.js.

  1. Open Settings → Connectors and choose Add custom connector.
  2. Enter the name Udger and the URL https://mcp.udger.com/v4/. Leave the advanced OAuth settings empty.
  3. Choose Add, then Connect. Claude opens the Udger sign-in page. Enter your access key and choose Authorize.
  4. In a chat, enable Udger in the tools menu.

On Team and Enterprise plans, an organization owner may have to add the connector first.

Claude Code

Run this in a terminal, replacing YOUR_KEY with your key:

claude mcp add --transport http udger https://mcp.udger.com/v4/ --header "Authorization: Bearer YOUR_KEY"

By default the server is added only for the current project. To use it in all projects, add --scope user.

To check the connection, run claude mcp list, or use the /mcp command inside Claude Code.

If you leave out --header, Claude Code signs in with OAuth instead. Run /mcp, pick udger and choose Authenticate.

Claude Desktop with a configuration file (alternative)

Use this only if you cannot use the connector described above. It connects through the mcp-remote External link helper. This requires Node.js External link.

  1. Open Settings → Developer → Edit Config. This opens claude_desktop_config.json.
  2. Add the udger server:
    {
      "mcpServers": {
        "udger": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://mcp.udger.com/v4/",
            "--header",
            "Authorization:${UDGER_AUTH}"
          ],
          "env": {
            "UDGER_AUTH": "Bearer YOUR_KEY"
          }
        }
      }
    }
    The header is passed through the UDGER_AUTH variable because some systems do not handle the space in Bearer YOUR_KEY inside an argument.
  3. Restart Claude Desktop. The Udger tools appear in the tools menu.

VS Code (GitHub Copilot)

Create .vscode/mcp.json in your project:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "udger-key",
      "description": "Udger access key",
      "password": true
    }
  ],
  "servers": {
    "udger": {
      "type": "http",
      "url": "https://mcp.udger.com/v4/",
      "headers": {
        "Authorization": "Bearer ${input:udger-key}"
      }
    }
  }
}

VS Code asks for the key the first time the server starts and stores it securely. The key is not written to the file, so you can share the file with your team.

Cursor

Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "udger": {
      "url": "https://mcp.udger.com/v4/",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

Other clients

Any MCP client that supports Streamable HTTP connects with the same details: the URL https://mcp.udger.com/v4/ and the header Authorization: Bearer <key>.

The server is stateless:

  • Every JSON-RPC message is sent as a POST.
  • The reply is application/json.
  • The server uses no sessions (Mcp-Session-Id) and no SSE stream. GET returns 405.

Quick connection test on Linux or macOS:

curl -s -X POST https://mcp.udger.com/v4/ \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"udger_account","arguments":{}}}'

On Windows (PowerShell):

$headers = @{ Authorization = 'Bearer YOUR_KEY'; Accept = 'application/json, text/event-stream' }
$body = '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"udger_account","arguments":{}}}'
(Invoke-RestMethod -Method Post -Uri https://mcp.udger.com/v4/ -Headers $headers -ContentType 'application/json' -Body $body).result.content[0].text

The response shows your subscription status and remaining quota. This call is free.

Available tools

ToolWhat it doesQuota
udger_parse_user_agentIdentifies the browser, operating system, device class and crawler from a User-Agent, optionally with Client Hints (Sec-Ch-Ua*).1 query
udger_lookup_ipClassifies an IPv4 or IPv6 address (crawler, proxy, VPN, Tor…) and returns hostname, country, city and datacenter.1 query
udger_parse_requestAnalyses a whole HTTP request at once: headers and IP address. Unsupported headers are skipped and listed.1 query
udger_accountShows the subscription status (valid from–to), the quota for the period, and used and remaining queries.free

Results include only fields that have a value. To see empty fields as well, ask the assistant to use the include_empty parameter.

Example prompts for your assistant:

  • “Which browser is this: Mozilla/5.0 (Windows NT 10.0; Win64; x64) … Chrome/131.0.0.0 Safari/537.36?”
  • “Is the IP address 66.249.66.1 a crawler or a datacenter?”
  • “How many Udger queries do I have left this month?”

Troubleshooting

ProblemCause and fix
A tool returns Udger API error 401: UNAUTHORIZEDThe key is invalid, or there is no Cloud parser subscription. Check the key in your Udger account.
HTTP 401 with WWW-Authenticate: Bearer resource_metadata=…The client sent no key and no OAuth token. Either add the Authorization: Bearer <key> header (check Bearer and the space before the key), or let the client sign in with OAuth. With error="invalid_token", the OAuth token expired or the server was reset. Reconnect the server in your client.
The sign-in page says the key was not acceptedThe key is wrong, or the account has no active Cloud parser subscription. Check it in your Udger account.
HTTP 403 Origin not allowedThe request came from a web browser on a domain that is not allowed. Desktop and CLI clients never get this error.
HTTP 405The URL does not end in /v4/: the root https://mcp.udger.com/ is only a landing page. Or the client is trying GET or an SSE stream: set the transport to Streamable HTTP in your client, not the older “SSE”.
HTTP 400 Unsupported protocol versionThe client uses an MCP version the server does not know. The server supports versions 2024-11-05 to 2026-07-28. Update your client.

For AI agents

A step-by-step setup guide written for AI agents is at https://mcp.udger.com/agents.md, and a short fact sheet is at https://mcp.udger.com/llms.txt.

Among our clients
View more...
 salesforce.com, inc.  
 MailChimp  
 Dailymotion SA  
 Allegro  
 Oracle  
 PayPal Holdings, Inc.