Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
APIFREAKS_API_KEYYesYour APIFreaks API key — get one at apifreaks.com

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
zipcode_lookupA

Look up a single ZIP or postal code to retrieve its city, region, country, their codes and geographic coordinates. Optionally filter by country using an ISO 3166-1 alpha-2 code.

zipcode_bulk_lookupA

Look up details for up to 100 ZIP/postal codes at once. Returns an array of results including city, region, country, their codes, and geographic coordinates for each ZIP code. Optionally filter all codes to a single country.

zipcode_radius_searchA

Find all ZIP/postal codes within a given radius of a center point. Specify the center as EITHER a ZIP code + country OR lat/long coordinates. Returns paginated results (up to 500 per page) with each code's distance from center. Max radius per unit: km=100, mi=100, yd=109361, m=100000, ft=328084, in=3937008.

zipcode_distanceA

Calculate the straight-line distance from a base point to each of up to 100 ZIP codes. Specify the base point as EITHER a ZIP code + country OR lat/long coordinates. Returns a distance value for each comparison code.

zipcode_distance_matchA

Find all pairs of ZIP codes within a given distance threshold. All codes must be in the same country. Returns every pair (code_1, code_2) whose distance is ≤ the threshold.

zipcode_by_cityA

Get all ZIP/postal codes for a city. Providing 'state_name' is recommended to disambiguate cities with the same name. Returns paginated results (up to 500 per page).

zipcode_by_regionA

Get all ZIP/postal codes for a state, province, or region. Returns paginated results (up to 500 per page).

commodity_symbolsA

List all supported commodity symbols with full metadata (name, unit, quote currency, exchange, status).

commodity_symbol_infoA

Validate a commodity symbol and return its full metadata (name, unit, quote currency, exchange, status). Use this instead of 'commodity_symbols' when you already have a symbol and just need to confirm it's valid or get its details.

commodity_quotesA

List all supported commodity quote currencies with symbol and currency name.

commodity_latest_ratesA

Get real-time prices for one or more commodities. Supports custom quote currencies.

commodity_historical_ratesA

Get historical open, high, low, close (OHLC) prices for specific commodities on a specific date. NOTE: If data is unavailable for the exact requested date (e.g. weekends/holidays), this tool will automatically return the rates for the nearest previous available date.

commodity_fluctuationA

Get price fluctuation for commodity symbols over a date range. If symbols are missing from results or a 404 is returned, use 'commodity_historical_rates' to find valid trading dates and retry.

commodity_time_seriesA

Get daily OHLC (Open, High, Low, and Close) prices for commodities over a date range (max 365 days). If symbols are missing from results or a 404 is returned, use 'commodity_historical_rates' to find valid trading dates and retry.

currency_latest_ratesA

Retrieve the latest exchange rates for 170+ fiat currencies and 830+ cryptocurrencies. Returns a 'rates' dictionary mapping currency codes to their rate relative to the base. Filter to specific symbols to reduce response size.

currency_historical_ratesA

Retrieve historical exchange rates for a specific past date. Supports 170+ fiat currencies and 830+ cryptocurrencies with data going back 40+ years.

currency_latest_converterA

Convert an amount from one currency to another using the latest exchange rates. Supports 170+ fiat currencies and 800+ cryptocurrencies. Returns the exchange rate used, the given amount, and the converted amount.

currency_historical_converterA

Convert an amount from one currency to another using exchange rates from a specific past date. Useful for financial auditing, tax reporting, and invoice reconciliation. Returns the exchange rate on that date, the given amount, and the converted amount.

currency_time_seriesA

Retrieve historical exchange rates day-by-day across a custom date range. Returns a 'historicalRatesList' array where each entry has a date and a 'rates' dictionary. Useful for charting currency trends and analyzing multi-day rate movements. startDate is required; endDate defaults to yesterday if omitted. Max interval supported is 1 year.

currency_fluctuationA

Retrieve exchange rate fluctuation metrics for currencies over a date range. For each requested currency returns: startRate, endRate, absolute change, and percent change. Useful for volatility analysis and comparing currency movements. startDate is required; endDate defaults to yesterday if omitted.

currency_geo_convertA

Convert an amount from a given currency to the local currency of an IP address's location. Returns the detected target currency, exchange rate, and converted amount. Useful for e-commerce checkout localization. Supports IPv4 and IPv6.

currency_supportedA

Get the supported currencies map. Each entry includes code, name, country data, status, availability dates, and icon. Covers 170+ fiat currencies and 830+ cryptocurrencies.

currency_symbolsA

Get a map of supported currency symbols to currency names.

currency_symbol_infoA

Validate a currency symbol and return its full name. Use this instead of 'currency_symbols' when you already have a symbol and just need to confirm it's valid or get its display name.

weather_currentA

Get real-time weather for a location, including temperature, humidity, wind, pressure, air quality (AQI), and astronomy (sunrise/sunset/moon phase). Provide at least one of: 'location', lat+long, or 'ip'.

weather_bulk_currentA

Get real-time weather for up to 50 locations at once. Each location in the array can be a city name, lat/long pair, or IP address. Returns weather + astronomy data for each location wrapped in a 'bulk' array.

weather_forecastA

Get weather forecast for up to 16 days with daily, hourly, or minutely precision. Use EITHER 'forecast_days' OR 'start_date'+'end_date' to define the range, not both. Only current or future dates are allowed. Provide at least one of: 'location', lat+long, or 'ip'.

weather_historicalA

Get historical weather data for a specific past date (back to 1940). Returns daily or hourly weather + astronomy for the given date. Only past dates are allowed — current or future dates are rejected. Provide at least one of: 'location', lat+long, or 'ip'.

weather_time_seriesA

Get historical weather data over a date range (time series). Max range: 90 days for daily precision, 7 days for hourly. Only past dates are allowed — current or future dates are rejected. Data available back to 1940. Provide at least one of: 'location', lat+long, or 'ip'.

weather_air_qualityA

Get air quality data either real-time or forecast. Returns PM2.5, PM10, CO, NO₂, SO₂, ozone, dust, and UV index. Real-time mode also includes AQI summary indices (US & EU); forecast mode returns raw pollutant values only. Omit dates for real-time AQI. Provide 'start_date' and 'end_date' for hourly AQI forecast (max 6 days, current/future dates only). NOTE: Use this tool over 'weather_current' when you need standalone or forecast air quality data. Provide at least one of: 'location', lat+long, or 'ip'.

weather_marineA

Get marine/ocean weather, real-time or forecast, up to 16 days. Returns wave height, swell, wind speed/direction, and sea-surface data. Omit dates for real-time conditions. Provide 'start_date' and 'end_date' for forecast mode (max 16 days, current/future dates only). Coordinates (lat/long) are recommended for offshore/ocean queries since city names resolve to land. Provide at least one of: 'location', lat+long, or 'ip'.

weather_flood_forecastA

Get flood forecast data — river discharge and flow percentiles (mean, median, min/max, p25/p75). Forecast range up to 16 days. Only current or future dates are allowed. Data may be limited for locations far from rivers. Provide at least one of: 'location', lat+long, or 'ip'.

ipgeolocation_lookupA

Look up geolocation data for an IP address, IPv6 address, or hostname. Returns location, network/ASN, currency, and optionally security, timezone, hostname, abuse contact, and user-agent data. 'ip' field is required — pass the IP or hostname to look up.

ipgeolocation_bulk_lookupA

Look up geolocation data for up to 50,000 IP addresses or hostnames in one request. Returns an array of geolocation objects — same fields as the single lookup. Individual IP failures include a 'message' field; they don't block other results.

whois_domain_lookupA

Retrieve live WHOIS data for a domain name. Returns registrar details, registrant/admin/technical contacts, name servers, domain status, expiry dates, and raw WHOIS text.

whois_ip_lookupA

Retrieve live WHOIS ownership and network data for an IPv4 or IPv6 address. Returns network block info, CIDR ranges, organization details, technical/abuse contacts, and raw WHOIS text from the relevant RIR.

whois_asn_lookupA

Retrieve real-time WHOIS data for an Autonomous System Number. Returns AS name, organization, allocation status, associated CIDR route objects, upstream/downstream/peer ASNs, contact emails, and raw WHOIS text. Accepts the ASN with or without the 'AS' prefix (e.g. 'AS15169' or '15169').Warning: Large ASNs (e.g. major cloud/telecom providers) can return very large responses with thousands of routes and peers, which may consume significant tokens.

whois_domain_historyA

Retrieve historical WHOIS snapshots for a domain, with data going back to 1986. Returns a chronological list of records each containing registrar info, contacts, name servers, and domain status at time of capture.Warning: Long-established domains can return a large number of historical records, which may consume significant tokens.

whois_reverse_lookupA

Search WHOIS records in reverse to find all domains linked to an owner, email, company, or keyword. Provide exactly one of: keyword, email, owner, or company. keyword uses pattern matching, email supports wildcard regex (e.g. 'm*@gmail.com'), owner and company use full-text phrase matching. Results are paginated. Default mode returns 50 records per page with full WHOIS data; mini mode returns 100 records per page with key fields only.

whois_bulk_domain_lookupA

Retrieve live WHOIS data for up to 100 domain names. Returns structured registrar info, contacts, name servers, status, and raw WHOIS text per domain. The response is an array under 'bulk_whois_response'. If a single domain fails its entry has status=false while the rest are still returned.

dns_lookupA

Retrieve real-time DNS records for a hostname or IP address. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types. At least one of host_name or ip_address must be provided. When ip_address is provided, record_types must be ['all'].

dns_historyA

Retrieve historical DNS records for a hostname. Returns paginated snapshots of DNS records captured over time, up to 100 per page. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types.

dns_reverseA

Find all hostnames associated with a specific DNS record value. Supports reverse IP lookup (all domains on an IP/CIDR), reverse MX lookup (all domains using a mail provider), reverse NS lookup (all domains on a name server), and more. Wildcard patterns using '*' are supported for MX, NS, SOA, SPF, TXT, CNAME. Results are paginated at up to 100 DNS records per page.

dns_bulk_lookupA

Retrieve real-time DNS records for up to 100 hostnames at once. Supports A, AAAA, MX, NS, SOA, SPF, TXT, and CNAME record types. The response is an array under 'bulk_dns_info'. If a single hostname fails its entry has status=false while the rest are still returned.

ssl_live_lookupA

Retrieve the live SSL certificate for a domain (end-user/leaf certificate only, no chain). Returns validity dates, serial number, signature algorithm, subject/issuer details, public key info, key usages, Subject Alternative Names, and the PEM-encoded certificate. To retrieve the full certificate chain use 'ssl_live_chain_lookup' instead.

ssl_live_chain_lookupA

Retrieve the complete live SSL certificate chain for a domain. Includes the leaf certificate plus intermediate and root CA certificates when available. Each certificate includes chain order, validity window, subject and issuer details, public key details, key usages, SAN, and PEM output. To retrieve only the end-user certificate, use 'ssl_live_lookup' instead.

domain_check_availabilityA

Check whether a single domain name is available for registration. Returns a boolean 'domainAvailability' field. Use source='whois' for a more authoritative check, source='dns' for a faster one.

domain_check_availability_with_suggestionsA

Check domain name availability and receive alternative domain name suggestions across different TLDs and SLDs if the domain is taken. Returns a 'domain_available_response' array with availability status for the queried domain plus the requested number of suggestions (up to 100).

domain_bulk_check_availabilityA

Check domain name availability for up to 100 domains at once. Returns a 'bulk_domain_availability_response' array one result per input domain. Each result includes 'domain', 'domainAvailability' (true/false), and 'status' (true if the check succeeded). Always verify 'status' before trusting 'domainAvailability'.

screenshot_captureA

Capture a static screenshot of a webpage and return a JSON response containing the screenshot URL which can be downloaded or shared directly. Always ask the user before calling this tool:

  • Full page or just the visible viewport?

  • Specific element, or the whole page? (If a specific element is needed, help identify the CSS selector via web_fetch on the target URL first.)

  • Image format: PNG, JPG, WebP, or PDF?

  • Should ads or cookie banners be blocked for a cleaner result?

  • Any viewport size / device to simulate?

Use screenshot_capture_scrolling instead when the user wants a scrolling video/GIF of the page.

screenshot_capture_scrollingA

Record a scrolling video or animated GIF of a webpage and return a JSON response containing the video download URL. Always ask the user before calling this tool:

  • What format? MP4 (default, best compatibility), WebM (smaller), or GIF (looping animation)?

  • How long should it scroll — how many seconds (up to 60)?

  • Scroll speed: slow, normal, or fast?

  • Should it scroll back to the top after reaching the bottom (great for looping GIFs)?

  • Any specific viewport size to simulate?

Use screenshot_capture instead for static screenshots (PNG, JPG, PDF).

screenshot_bulk_captureA

Capture screenshots of up to 50 webpages in a single request. Returns a JSON response with per-URL results — each entry includes the screenshot download URL, fulfillment status, and any error message.

If any URL needs a specific element targeted via CSS selector, use web_fetch on that page first to identify the correct selector before calling this tool.

Note: multiple_scrolling is NOT supported in bulk mode — for scrolling video captures prefer screenshot_capture_scrolling per URL instead.

user_agent_parseA

Parse a single user-agent string to extract browser, device, OS, and engine details. Also identifies crawlers/bots and flags potential attack user-agents.

user_agent_bulk_parseA

Parse up to 100 user-agent strings in a single request. Returns an array of parsed objects — same fields as single parse. Individual parse failures include a 'message' field without blocking other results.

timezone_lookupA

Look up timezone information for a location. Accepts one of: IP address, timezone name, city/address, lat/long, IATA code, ICAO code, or UN/LOCODE. At least one input is required — provide IP if location fields are not provided. Returns current time, UTC offset, DST status, and timezone metadata. Airport/LOCODE inputs also return venue details.

timezone_convertA

Convert a date/time from one timezone to another. Specify the source and destination timezone each using ONE of: timezone name (tz_from/tz_to), coordinates (lat/long_from + lat/long_to), city address (location_from/location_to), IATA code (iata_from/iata_to), ICAO code (icao_from/icao_to), or UN/LOCODE (locode_from/locode_to).

astronomy_lookupA

Get astronomy data for a location and date: sunrise/sunset, moon phase, twilight, golden/blue hour, solar noon, moonrise/moonset, and sun/moon position metrics. Provide one of: ip, location, or lat+long. At least one is required. Date format: YYYY-MM-DD (past or future), defaulting to today.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/api-freaks/apifreaks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server