Deploy an auth-less Model Context Protocol (MCP) server on Cloudflare Workers to programmatically generate customizable forms via the Weavely API using prompt-based input and seamless API integration.
Unlock the full potential of Remote MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available β’ No credit card required
This project sets up a Model Context Protocol (MCP) server using the @modelcontextprotocol/sdk
, hosted on Cloudflare Workers, to programmatically generate forms using the Weavely API.
create-form
to generate forms via promptaxios
for external API calls to weavely.ai@modelcontextprotocol/sdk
@modelcontextprotocol/sdk
zod
axios
biome
git clone https://github.com/weavely/mcp.git cd mcp npm install
Start a development server locally using Wrangler:
npm run dev
Deploy to Cloudflare Workers:
npm run deploy
Or use the Cloudflare Deploy Button:
Curious how it works? Watch a short demo here:
βΆοΈ https://youtu.be/C1jZBrGV6jE
create-form
This MCP agent defines one tool:
create-form
{ name?: string; prompt: string; }
https://api.weavely.ai/v1/forms/generate
and returns the form content.Script | Description |
---|---|
dev | Start development server |
deploy | Deploy to Cloudflare |
format | Format code using Biome |
lint:fix | Fix linting issues via Biome |
cf-typegen | Generate Cloudflare bindings |
weavely-mcp/
βββ src/
β βββ index.ts # Main MCP logic and tool registration
βββ worker-configuration.d.ts
βββ package.json
βββ wrangler.jsonc # Cloudflare deployment config
βββ tsconfig.json
βββ .vscode/
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!