Skip to main content
Glama
Remote MCP Server

Remote MCP Server

by weavely

Weavely MCP – Remote MCP Server for Form Generation

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.


πŸš€ Features

  • Deploys an auth-less MCP server on Cloudflare Workers

  • Exposes a tool: create-form to generate forms via prompt

  • Uses axios for external API calls to weavely.ai

  • Built using TypeScript and the official @modelcontextprotocol/sdk


Related MCP server: Cloudflare Remote MCP Server (Authless)

πŸ› οΈ Technologies Used

  • 🧠 MCP SDK: @modelcontextprotocol/sdk

  • 🌩️ Cloudflare Workers + Wrangler

  • πŸ›‘ Type-safe schema validation with zod

  • 🌐 HTTP requests via axios

  • 🧹 Formatting & linting with biome


πŸ“¦ Installation

git clone https://github.com/weavely/mcp.git
cd mcp
npm install

πŸ§ͺ Development

Start a development server locally using Wrangler:

npm run dev

πŸ“€ Deployment

Deploy to Cloudflare Workers:

npm run deploy

Or use the Cloudflare Deploy Button:

Deploy to Workers


πŸ“Ί Demo

Curious how it works? Watch a short demo here:

▢️ https://youtu.be/C1jZBrGV6jE


πŸ”§ Tool: create-form

This MCP agent defines one tool:

  • Name: create-form

  • Description: Create a new Weavely form.

  • Input Schema:

    {
      name?: string;
      prompt: string;
    }
  • Behavior: Sends a POST request to https://api.weavely.ai/v1/forms/generate and returns the form content.


🧰 Scripts

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


πŸ—‚ Folder Structure

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/

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers