
Search and read the Farm.js docs: pages, sections, code examples and config options.
$ npx add-mcp https://mcp.farmjs.dev/mcp --name docsRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Claude Code
$ claude mcp add --transport http docs https://mcp.farmjs.dev/mcpRun in your terminal. Add --scope user to make it available in every project.
Verified live against the running server on Nov 6, 2026.
get_code_examplesReturn fenced code examples from the docs with parsed metadata such as title, framework, packageManager, and runnable.8 paramsReturn fenced code examples from the docs with parsed metadata such as title, framework, packageManager, and runnable.
frameworkstringlanguagestringlimitintegerlocalestringpackageManagerstringpathstringquerystringrunnablebooleanget_config_schemaReturn structured docs.config.ts option metadata, optionally filtered by option path or query.2 paramsReturn structured docs.config.ts option metadata, optionally filtered by option path or query.
optionstringquerystringget_contextBuild deterministic, section-level documentation context for a query within a conservative UTF-8 byte ceiling derived from the requested token budget, with source URLs and accounting metadata.7 paramsBuild deterministic, section-level documentation context for a query within a conservative UTF-8 byte ceiling derived from the requested token budget, with source URLs and accounting metadata.
frameworkstringlocalestringpackagevaluequery*stringtagsvaluetokenBudgetintegerversionstringget_navigationReturn the documentation navigation tree for the current docs site.1 paramsReturn the documentation navigation tree for the current docs site.
localestringhydrate_content_changesFetch only added and changed agent-facing sections after list_content_changes. Returns deletion tombstones and digest-bound continuation cursors under a conservative token budget.4 paramsFetch only added and changed agent-facing sections after list_content_changes. Returns deletion tombstones and digest-bound continuation cursors under a conservative token budget.
cursorstringlocalestringsince*stringtokenBudgetintegerlist_content_changesSynchronize body-free document metadata. Save indexGeneration and pass it as since on the next poll. A reset response means the named snapshot is no longer available.2 paramsSynchronize body-free document metadata. Save indexGeneration and pass it as since on the next poll. A reset response means the named snapshot is no longer available.
localestringsincestringlist_docsList documentation pages grouped by section, optionally narrowed to one section.3 paramsList documentation pages grouped by section, optionally narrowed to one section.
cursorstringlocalestringsectionstringlist_page_sectionsDiscover a page's canonical headings, anchors, hierarchy, line ranges, size estimates, and budget-aware fetch URLs without returning the page body.5 paramsDiscover a page's canonical headings, anchors, hierarchy, line ranges, size estimates, and budget-aware fetch URLs without returning the page body.
byteBudgetintegercursorstringlocalestringpath*stringtokenBudgetintegerlist_pagesList the known documentation pages with titles, slugs, and URLs.2 paramsList the known documentation pages with titles, slugs, and URLs.
cursorstringlocalestringlist_search_facetsList valid framework, version, package, and tag filters with matching page counts before calling search_docs. Use facet, limit, and cursor to continue a large facet without document bodies.9 paramsList valid framework, version, package, and tag filters with matching page counts before calling search_docs. Use facet, limit, and cursor to continue a large facet without document bodies.
audiencestringhuman · agentcursorstringfacetstringframework · version · package · tagsframeworkvaluelimitintegerlocalestringpackagevaluetagsvalueversionvaluelist_tasksList pages with actionable agent contracts, optionally filtered by text or applicability.6 paramsList pages with actionable agent contracts, optionally filtered by text or applicability.
cursorstringframeworkstringlocalestringpackagestringquerystringversionstringread_pageRead a documentation page by slug or URL path, optionally selecting one heading and limiting returned characters.4 paramsRead a documentation page by slug or URL path, optionally selecting one heading and limiting returned characters.
localestringmaxCharsintegerpath*stringsectionstringread_pagesRead up to 20 documentation pages in one round trip. Results preserve request order and share a conservative UTF-8 token budget.4 paramsRead up to 20 documentation pages in one round trip. Results preserve request order and share a conservative UTF-8 token budget.
localestringmaxCharsPerPageintegerpaths*arraytokenBudgetintegerread_taskRead the full structured agent contract for a page by slug or URL path.4 paramsRead the full structured agent contract for a page by slug or URL path.
localestringmaxCharsintegerpath*stringsectionstringsearch_docsSearch the docs by keyword with optional framework, version, package, and tag filters. Returns structured ambiguity and metadata warnings.10 paramsSearch the docs by keyword with optional framework, version, package, and tag filters. Returns structured ambiguity and metadata warnings.
audiencestringhuman · agentcursorstringexplainbooleanframeworkvaluelimitintegerlocalestringpackagevaluequery*stringtagsvalueversionvaluesubmit_feedbackSubmit machine-readable documentation feedback. The payload is validated against the site's configured agent feedback schema before delivery.2 paramsSubmit machine-readable documentation feedback. The payload is validated against the site's configured agent feedback schema before delivery.
contextobjectpayload*objectSponsors