Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_FETCH_PORTNoPort for HTTP transport mode8000
MCP_FETCH_CACHE_DIRNoDirectory for storing cache files./.mcp-fetch-cache
MCP_FETCH_TRANSPORTNoTransport mode: stdio or http
MCP_FETCH_TTL_SECONDSNoTime-to-live for cached items in seconds1800
MCP_FETCH_MAX_CACHE_BYTES_TOTALNoMaximum total cache size in bytes (512 MiB)536870912
MCP_FETCH_MAX_SINGLE_TRANSFER_BYTESNoMaximum size for a single transfer in bytes (200 MiB)209715200
MCP_FETCH_WAIT_CHUNK_TIMEOUT_SECONDSNoTimeout for waiting on chunk data in seconds30

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tasks
{
  "list": {},
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    },
    "prompts": {
      "get": {}
    },
    "resources": {
      "read": {}
    }
  }
}
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_page

Fetch/Crawl a dynamic web page and convert to Markdown (supports JavaScript).

Use this tool to:

  1. Crawl/Scrape content from modern web pages (React, Vue, etc.)

  2. Get full page content after JavaScript rendering

  3. Download large page content via chunked streaming

Protocol:

  1. Start: Provide url (required) → returns transfer_id + first chunk

  2. Continue: Provide transfer_id + offset → returns next chunk

Args:

  • url: Target http(s) URL (required for phase 1)

  • to_markdown: Convert HTML to Markdown (default: True)

  • wait_selector: CSS selector to wait for before capturing content

  • Optional: headers, query, timeout_ms, max_scrolls, min/max_delay_ms, proxy/pool, user_agent, chunk_bytes

  • Cursor: transfer_id, offset (for phase 2)

Returns:

  • Chunk: chunk_text or chunk_base64, next_offset, done, truncated

  • Meta: transfer_id, status, headers, final_url, content_type, elapsed_ms

  • Size: available_bytes, total_bytes

http_request

Perform a generic HTTP request (GET, POST, PUT, DELETE, etc) for APIs or raw data.

Use this tool when:

  1. You need to call a REST API (JSON/XML)

  2. You need to use HTTP methods other than GET (POST, PUT, DELETE)

  3. You want to download a raw file without rendering (PDF, Image, etc)

Note: For GET requests to renderable web pages, prefer fetch_page which handles dynamic content and JavaScript.

Protocol:

  1. Start: Provide url (required) → returns transfer_id + first chunk

  2. Continue: Provide transfer_id + offset → returns next chunk

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/sposer/mcp_fetch'

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