MCP connection guide
This application exposes its public versioned API operations as tools through the Model Context Protocol (MCP) Streamable HTTP transport. The endpoint is remote; it does not use stdio.
What this is
This application exposes its public versioned API operations as tools through the Model Context Protocol (MCP) Streamable HTTP transport. The endpoint is remote; it does not use stdio.
Endpoint
Use the canonical endpoint or either direct alias:
https://ifcfg.us/api/v1/server/mcp
https://ifcfg.us/api/mcp
https://ifcfg.us/mcp
Select the endpoint URL above as a whole without JavaScript.
Authentication
Every MCP request requires an Authorization: Bearer token. Create an owner token on /server/preferences/tokens or through the API, then use a linked token for each MCP client. Owner and linked tokens can access owner tools; operator tokens can access administrative tools.
Create an owner token from /server/preferences/tokens, then create a linked token for each MCP client and provide it as a Bearer header:
Connect a client
Claude Code
claude mcp add --transport http ipgaze https://ifcfg.us/api/v1/server/mcp --header "Authorization: Bearer $MCP_TOKEN"
Generic client configuration
{
"mcpServers": {
"ipgaze": {
"type": "http",
"url": "https://ifcfg.us/api/v1/server/mcp",
"headers": {
"Authorization": "Bearer $MCP_TOKEN"
}
}
}
}
Verify with initialize
curl -q -LSsf -X POST 'https://ifcfg.us/api/v1/server/mcp' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $MCP_TOKEN" \
-H 'MCP-Protocol-Version: 2026-07-28' \
-H 'Mcp-Method: initialize' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2026-07-28","capabilities":{},"clientInfo":{"name":"ipgaze-check","version":"1.0.0"}}}'
Available tools
This live list is generated from the registered versioned API operations.
| Name | Details |
|---|---|
| No public API tools are currently registered. | |
The operator token may see additional tools.
Behavior and limits
- Requests use POST; this endpoint is stateless and does not create sessions.
- API rate limits and request auditing apply.
- Requests with an invalid Origin are rejected.
- Supported protocol versions include 2026-07-28.
Troubleshooting
| Status | Cause | Fix |
|---|---|---|
| 400 | Protocol version or required header mismatch | Send the protocol version and JSON/stream Accept headers shown above. |
| 401 | Missing, invalid, or expired token | Provide a valid owner, linked, or operator Bearer token. The response includes WWW-Authenticate: Bearer. |
| 403 | Invalid Origin or insufficient token scope | Connect from an allowed origin and use a token with the required scope. |
| 405 | GET or DELETE used on the MCP endpoint | Use POST for MCP requests. |
IPGaze tools
IPGaze provides public IP detection and IPv4/IPv6 lookups. GeoIP details depend on the databases enabled on this server.
Example prompts:
- What is my public IP address?
- Look up 8.8.8.8 and summarize its GeoIP data.
- Which ASN announces 1.1.1.1?