MOOF MCP Server πŸš€

May 8, 2025 Β· View on GitHub

✨ Overview

This MCP server connects to MOOF, a platform for building and sharing powerful AI flows and agents.

πŸ”§ Features:

  • πŸ“œ Fetch public flow templates
  • βœ‚οΈ Fork flows from templates
  • πŸ‘€ Fetch authenticated user’s flows
  • πŸš€ Publish/unpublish flows to/from the shared flow store
  • πŸ› οΈ Deploy MCP servers from GitHub (with optional Phala hosting + env vars)

βš™οΈ Setup Options

Option 1: Run via npx (no install)

MOOF_API_KEY=your-moof-key MCP_API_KEY=your-mcp-key npx -y moof-mcp --stdio

git clone https://github.com/your-org/moof-mcp
cd moof-mcp
npm install

Create a .env file:

MOOF_API_KEY=your-moof-key
MCP_API_KEY=your-mcp-key
BASE_URL=https://app.moof.fun
MCP_BASE_URL=https://dev-mcp-api.moof.fun

Then build and run:

npm run build
node build/index.js --stdio

🧐 Use with Claude Desktop (or other MCP clients)

Register this server as a Stdio Tool:

Claude .tools config

{
  "command": "npx",
  "args": ["-y", "moof-mcp", "--stdio"],
  "env": {
    "MOOF_API_KEY": "your-moof-key",
    "MCP_API_KEY": "your-mcp-key"
  },
  "type": "stdio",
  "port": 3000
}

Paste into Claude Desktop under Add Custom Tool β†’ Stdio Tool.


πŸ› οΈ Available Tools

Tool IDDescription
get_published_flowsFetches all public flow templates on MOOF
create_flow_from_templateForks a new flow using a given template ID (flow_id)
get_user_flowsReturns up to 5 most recent flows owned by the API key's user
publish_flowPublishes a flow (sets access_type = PUBLIC)
unpublish_flowUnpublishes a flow (sets access_type = PRIVATE)
create_mcp_from_github_linkDeploys a new MCP server from a public GitHub repository

This tool lets you deploy a new MCP server from any public GitHub repository, optionally hosted on Phala and configured with custom environment variables.

FieldTypeDescription
github_urlstring (required)Public GitHub repository URL. Example: https://github.com/user/repo
is_phala_hostedboolean (optional, default: false)Set to true to deploy on Phala.
envrecord<string,string> (optional)Environment variables in KEY=VALUE format. Can be passed directly in the prompt (see below).

πŸ”Š Example Prompts (Claude, Cursor, etc.)

Deploy this MCP to Phala from https://github.com/mooflowdotai/solana-quicknode-mcp
with env RPC_URL=https://example.solana.rpc API_KEY=sk-test-abc123
Create MCP from https://github.com/user/repo with env: RPC_URL=https://... NODE_ENV=production

πŸ’‘ Pro tip: If env doesn't get picked up, try using env: to prefix your environment variables clearly in the prompt.


πŸ”ͺ Development Workflow

npm run watch

Or:

npm run build
MOOF_API_KEY=your-moof-key MCP_API_KEY=your-mcp-key node build/index.js --stdio

πŸ“ License

MIT