Skip to main content
Glama
BitingSnakes

silkworm-mcp

by BitingSnakes

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost for MCP HTTP server0.0.0.0
MCP_PATHNoPath for MCP HTTP server
MCP_PORTNoPort for MCP HTTP server8000
MCP_TRANSPORTNoTransport type for MCP server (stdio or http)http
LIGHTPANDA_HOSTNoLightpanda browser host127.0.0.1
LIGHTPANDA_PORTNoLightpanda browser port9222
LIGHTPANDA_ENABLEDNoEnable Lightpanda browser for CDP tools1
LIGHTPANDA_LOG_LEVELNoLog level for Lightpandainfo
LIGHTPANDA_LOG_FORMATNoLog format for Lightpandapretty
SILKWORM_MCP_LOG_LEVELNoLog level for MCP server
LIGHTPANDA_ADVERTISE_HOSTNoAdvertised host for Lightpanda CDP endpoint
SILKWORM_MCP_DOCUMENT_MAX_COUNTNoMaximum number of documents in cache
SILKWORM_MCP_DOCUMENT_STORE_PATHNoPath to document store
SILKWORM_MCP_DOCUMENT_TTL_SECONDSNoIdle TTL for document cache in seconds
SILKWORM_MCP_READINESS_REQUIRE_CDPNoWhether readiness probe requires CDP browser
SILKWORM_MCP_DOCUMENT_MAX_TOTAL_BYTESNoMaximum total bytes for document cache
SILKWORM_MCP_READINESS_CDP_WS_ENDPOINTNoCDP WebSocket endpoint for readiness probe

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
store_html_documentC

Store raw HTML in the server's in-memory document cache and return a scraper_rs summary.

list_documentsA

List cached documents that can be reused by handle in later tool calls.

delete_documentC

Delete a cached document handle.

clear_documentsA

Clear every cached document from the in-memory store.

server_statusB

Return runtime status, cache metrics, and optional CDP readiness information.

generate_regexC

Generate a regular expression from sample strings using grex.

inspect_documentC

Build a high-level summary for stored HTML or an inline HTML snippet.

prettify_documentC

Return prettified HTML for visual inspection.

parse_html_documentC

Parse a full HTML document into a structured node tree using scraper_rs.parse_document.

parse_html_fragmentC

Parse an HTML fragment into a structured node tree using scraper_rs.parse_fragment.

query_selectorC

Run a CSS or XPath query with scraper_rs and return structured match previews.

compare_selectorsB

Compare multiple selectors against the same document to see which one is the most stable.

analyze_css_selectorsC

Parse inline, linked, or raw CSS with tinycss2 and optionally match selectors back onto HTML.

find_selectors_by_textC

Find CSS/XPath selector candidates for the smallest matching elements by text.

extract_linksC

Extract and absolutize link-like attributes from matching elements.

silkworm_fetchB

Fetch a page through silkworm's HttpClient and optionally cache the HTML for later selector work.

silkworm_fetch_cdpB

Fetch rendered HTML through silkworm's CDP client for JavaScript-heavy pages.

query_selector_cdpA

Fetch a rendered page through CDP, then run a CSS or XPath query on the live DOM snapshot.

extract_structured_data_cdpC

Fetch a rendered page through CDP and extract structured records from the rendered DOM.

validate_spider_codeB

Statically validate generated spider code for syntax and common silkworm/CDP wiring.

run_crawl_blueprintB

Run a configurable silkworm spider without writing code, useful for validating a scraping plan.

generate_spider_templateC

Generate a production starter spider that mirrors the crawl blueprint.

Prompts

Interactive templates invoked by user choice

NameDescription
plan_silkworm_scraper
debug_selector_strategy

Resources

Contextual data attached and managed by the client

NameDescription
status_resource
reference_overview
silkworm_cheatsheet
silkworm_playbook
template_variants_reference
scraper_rs_cheatsheet
crawl_blueprint_schema
documents_resource

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/BitingSnakes/silkworm-mcp'

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