Duck Framework MCP

io.github.duckframeworkPublished by GitHub account duckframeworkv1.2.0Updated Oct 24, 2026

Official Duck Framework MCP server for AI-assisted development and project scaffolding.

VerifiedStreamable HTTPWeb executableKnowledge & MemoryDeveloper Tools

Overview

AI-generated overview

Official Duck Framework MCP server that gives an assistant the framework's documentation, component APIs, project and blueprint structure, and scaffolding for a

What you can do
Search and browse the Duck Framework documentation by category or fuzzy query, and list and fetch official AI guides for AI-assisted development. Look up built-in component APIs, including import paths, container types and supported keyword arguments. Get the standard project and blueprint directory structures and where blueprints can be located. Plan non-trivial features with a suggested reading order and implementation steps. Scaffold a new project or blueprint, returning generated file contents and settings rather than writing files. Lint component or page code for known mistakes such as incorrect imports and Heading usage.
When to use it
Use it when building or extending a Duck Framework web application with an AI assistant and you want answers grounded in the official documentation and confirmed component APIs instead of guessed framework details. It is also useful for starting a new Duck project or blueprint with the documented conventions.
Requirements
A remote endpoint at duckframework.com over streamable HTTP; no packages, environment variables or headers are declared. The reindex_docs tool requires an admin scope.
Before you install
reindex_docs rebuilds the documentation index by crawling the live sitemap, adds and removes pages, and requires the admin scope, so treat it as a write operation. Scaffolding tools only return generated code and do not write files. Lint results are pattern checks for known issues, not full correctness verification.

Installation

In SourceWeft

  1. Open Duck Framework MCP in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.duckframework%2Fduckframework-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "duck-framework": {
      "type": "http",
      "url": "https://duckframework.com/mcp"
    }
  }
}

README

[Duck Wordmark]

Duck Framework is an open-source Python web framework and web server with a built-in reactive UI engine and real-time WebSocket support.

Build high-performance, flexible, scalable, server-side reactive web applications — without a separate frontend framework or a complex JavaScript stack.

[Python >=3.10] [GitHub stars] [License] [Build Status]

(More badges — security, performance, integrations — on the Features page.)


Quickstart

sh
# Install Duck Frameworkpip install duckframework
# Create a projectduck makeproject myproject
# Change directory to myprojectcd myproject
# Run the webserverpython web/main.py # Optionally use duck runserver

Visit http://localhost:8000 — you're running Duck. For the full walkthrough (install options, project types, what gets generated), see Getting Started.


HTML & Lively Components

Duck includes everything you need to build your UI, while Quirl, the official component library, provides modern, reusable HTML and Lively components for building richer interfaces and interactions.


Documentation

New to Duck? Start with Getting Started, then Understanding the Project. You'll have everything you need to build your first app. Explore the other guides as your project grows.

1. Start Here

2. Build with Duck

  • Native Apps — get started with Duck Native and native app development.
  • Django Integration — add Duck's HTTP/2, HTTPS, and security features to an existing Django project.
  • Features — explore Duck's capabilities and planned features.

3. Resources

  • AI Guidelines — use Duck with AI assistants and AI-assisted development.
  • About & Links — discover real-world apps, useful links, and fun facts.
  • Contributing — learn about contributing, reporting issues, sponsorship, and premium components.
  • Official Documentation — explore the full documentation.

Duck is updated regularly — check the repo for improvements and bug fixes.

Source: README.md at commit 12b74cc

Tools

13

fetch_ai_guide

Fetch an official Duck Framework AI guide. Use this after get_ai_guides() to retrieve the full guide content for AI-assisted Duck Framework development. Always read the relevant guide before generating code instead of relying on memory.

Parametersguiderequired

get_ai_guides

List available Duck Framework AI guides. Use this to discover available guides before fetching one with fetch_ai_guide(). Returns guide identifiers and their descriptions.

Takes no parameters.

get_blueprint_locations

Explain where Duck Framework blueprints can be located. Describes the supported blueprint layouts and when each organization approach is appropriate.

Takes no parameters.

get_blueprint_structure

Return the standard internal structure of a Duck Framework blueprint. Use this before generating a new blueprint or adding files to an existing one to understand where components, pages, templates, automations, and views belong.

Takes no parameters.

get_component_api

Look up a built-in Duck Framework component API. Returns the confirmed import path, container type, and supported keyword arguments for a component without requiring the full HTML components guide to be loaded. Use this before using any component that has not already been confirmed. Returns close-name suggestions when the component does not exist.

Parameterscomponent_namerequired

get_project_structure

Return the standard Duck Framework project directory structure. Use this before creating or modifying projects to understand where files and directories belong.

Takes no parameters.

lint_component_code

Check Duck Framework component or page code for common mistakes. Detects known patterns such as incorrect component imports, invalid page imports, incorrect Heading usage, leading-underscore method names, and separator comments. This is a pattern check for known issues, not a complete correctness validator. An empty result only means no known issues were detected. Run this on generated component code before presenting it as final.

Parameterscoderequired

list_doc_categories

List all Duck Framework documentation categories and their pages. Use this when browsing available documentation without a specific search query.

Parametersversion

plan_feature

Analyze a Duck Framework feature request and create an implementation plan. Returns relevant documentation to read and a suggested order of operations before writing code. Use this before implementing non-trivial Duck Framework features.

Parametersrequestrequiredversion

reindex_docs

Rebuild the Duck Framework documentation index. Crawls the live documentation sitemap for a given version and merges the result in: curated tags/summary/category are preserved, new pages are added, and pages no longer in the sitemap are removed. Requires the admin scope.

Parametersversion

scaffold_blueprint

Scaffold a new Duck Framework blueprint. Generates a blueprint structure containing blueprint.py, views.py, and optional UI, template, and static directories following the documented Duck blueprint conventions. Returns generated file contents and the settings configuration needed to register the blueprint. This tool does not write files.

Parametersurlpatternsblueprint_namerequiredenable_static_direnable_template_dirprepend_name_to_urls

scaffold_project

Scaffold a new Duck Framework project. Returns the required CLI commands and generated file contents for supported features with confirmed APIs. Unsupported features return documentation guidance instead of generated code to avoid guessing framework APIs. This tool does not write files. It only returns generated content for the calling client to add to the user's project directory.

Parametersfeaturesproject_namerequired

search_docs

Fuzzy-search the Duck Framework documentation. Use this whenever the correct documentation page for a feature is unknown. Returns ranked matches containing title, URL, category, summary, and relevance score.

Parametersqueryrequiredtop_kversioncategory

Version history

1
  1. v1.2.0LatestOct 23, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts