Skip to content

Microfn documentation

Microfn runs saved JavaScript functions in a cloud sandbox. Create and call tools through MCP, use the CLI, or inspect and edit the code in your browser.

export async function main(input) {
return { greeting: `Hello, ${input.name || "world"}!` };
}

Save this code in a Microfn function, then execute it with {"name":"Tokyo"} as input. Your agent can call the saved function again in a later conversation.

The former AI and agent modules are retired. Connect an external AI assistant through MCP instead of importing them.

Free includes 3 active functions and 100 executions per day. Pro removes those two quotas; runtime and API rate limits still apply. See current pricing.