- Node.js 18.0.0 or later (tested on 20 and 22)
- pnpm 9.x (Corepack-managed — enabled automatically)
- A Webflow account with API access
npm install @webflow-agent-kit/core @webflow-agent-kit/vercel-aiFor specific frameworks:
# LangChain
npm install @webflow-agent-kit/core @webflow-agent-kit/langchain @langchain/core zod
# MCP server (Claude Code, Codex, Cursor)
npm install @webflow-agent-kit/mcp
# CLI
npm install -g @webflow-agent-kit/cliFull dependency compatibility matrix →
corepack enable
git clone https://github.com/anilandcode/webflow-agent-kit.git
cd webflow-agent-kit
pnpm install
pnpm build
pnpm typecheck
pnpm testexport WEBFLOW_TOKEN=your_token_hereFor demos, create .env.local in the example directory:
WEBFLOW_TOKEN=your_token
GOOGLE_GENERATIVE_AI_API_KEY=your_key # Free tierNever commit .env files. They are in .gitignore.
import { createWebflowAgentKit } from '@webflow-agent-kit/core';
import { toVercelAITools } from '@webflow-agent-kit/vercel-ai';
import { generateText } from 'ai';
import { anthropic } from '@ai-sdk/anthropic';
const kit = createWebflowAgentKit({ type: 'env' });
const tools = toVercelAITools(kit);
const { text } = await generateText({
model: anthropic('claude-sonnet-4-5'),
tools,
maxSteps: 10,
prompt: 'List all my Webflow sites and their published status.',
});
console.log(text);Run: npx tsx agent.ts
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"webflow": {
"command": "npx",
"args": ["-y", "@webflow-agent-kit/mcp@beta"],
"env": { "WEBFLOW_TOKEN": "<YOUR_TOKEN>" }
}
}
}Then in Claude Code: > List my Webflow sites
webflow-agent-kit supports three authentication modes:
// Environment variable (recommended)
const kit = createWebflowAgentKit({ type: 'env' });
// Site token (single-site)
const kit = createWebflowAgentKit({ type: 'site-token', token: 'xxx' });
// OAuth (multi-site)
const kit = createWebflowAgentKit({ type: 'oauth', accessToken: 'xxx' });All agent-facing APIs default to read-only. Write operations must be explicitly enabled through the mutation policy.
- Tool Reference — all 62 tools
- Framework Adapters — LangChain, Google ADK, MCP, CLI
- Troubleshooting — common errors and fixes
- Compatibility — supported frameworks and Node versions