M

MOOF MCP

Added by MOOF
An MCP server enables LLMs to work with the MOOF platform, deployed on Phala Cloud. It can list flows, create new flows, and deploy other MCP servers on Phala Cloud. Additionally, it supports fetching public flow templates, forking flows from templates, retrieving authenticated user flows, publishing or unpublishing flows to/from the shared flow store, and deploying MCP servers directly from GitHub with optional Phala hosting and environment variable support.
MCPA2Ax402

MOOF MCP Server ๐Ÿš€

โœจ 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

Option 2: Run locally (recommended for development)

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 ID Description
get_published_flows Fetches all public flow templates on MOOF
create_flow_from_template Forks a new flow using a given template ID (flow_id)
get_user_flows Returns up to 5 most recent flows owned by the API key's user
publish_flow Publishes a flow (sets access_type = PUBLIC)
unpublish_flow Unpublishes a flow (sets access_type = PRIVATE)
create_mcp_from_github_link Deploys a new MCP server from a public GitHub repository

๐Ÿง  Tool: create_mcp_from_github_link

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

Field Type Description
github_url string (required) Public GitHub repository URL. Example: https://github.com/user/repo
is_phala_hosted boolean (optional, default: false) Set to true to deploy on Phala.
env record<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