Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XKCD_MCP_HOSTNoHost for the MCP server.127.0.0.1
XKCD_MCP_PORTNoPort for the MCP server.10778
XKCD_PREFAB_APPSNoSet to '1' to enable Prefab UI (rich in-chat comics).0
XKCD_MCP_HTTP_PATHNoHTTP path for the MCP server./mcp

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
xkcd_latestA

Fetch the latest comic from xkcd.com.

xkcd_getA

Fetch a specific xkcd comic by its number.

xkcd_searchB

Search for xkcd comics by topic (e.g., 'aliens', 'global warming'). Uses explainxkcd semantic indexing to find relevant comic numbers.

xkcd_randomA

Fetch a random comic from the entire xkcd collection.

show_comic_prefab_cardA

Show a rich prefab card for an xkcd comic. Fetches random if no number given.

This tool renders an interactive UI in the chat. Prefer it over text output when displaying data from other xkcd-mcp tools.

xkcd_helpA

Get help and usage information for xkcd-mcp tools and configuration.

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/sandraschi/xkcd-mcp'

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