Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCS_MCP_CACHENoWhere embeddings are cached (default `~/.cache/fastapi-docs-mcp/`). The docs are embedded once (< $0.01).~/.cache/fastapi-docs-mcp/
OPENAI_API_KEYNoIf set and the `dense` extra is installed, search uses `text-embedding-3-small`; otherwise it falls back to BM25 instead of failing.
DOCS_MCP_RETRIEVERNoForce `bm25` or `dense`.

Instructions

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

Search the official FastAPI documentation (snapshot, English). Use search_docs first with a natural-language question; cite the returned urls in your answer. Use get_page when a search result is relevant but you need the whole page. If nothing relevant comes back, say the docs don't cover it instead of guessing.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_docsA

Find the most relevant passages in the FastAPI documentation for a question.

get_pageA

Return the full text of one documentation page.

list_pagesA

List documentation pages, optionally only those under a section.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 3 tools

Disambiguation5/5

The three tools cover clearly distinct retrieval modes: search returns snippets, get_page returns full page text, and list_pages enumerates the corpus. An agent can unambiguously pick among discovery, enumeration, and full read.

Naming Consistency5/5

All three follow a consistent verb_noun snake_case pattern (search_docs, get_page, list_pages). No stylistic deviations.

Tool Count4/5

Three tools is on the thin side, but for a read-only documentation lookup server each tool earns its place and covers a distinct retrieval strategy. Nothing feels redundant or padding.

Completeness4/5

Search, list, and full-page fetch cover the core documentation retrieval lifecycle with no dead ends. Minor gaps like section metadata or version/target-version awareness are missing but not blocking.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues