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.
What do you want to do?
Section titled “What do you want to do?” Connect an agent Connect through MCP and authorize access to your functions.
Deploy a function Install the CLI and create your first function.
Configure triggers Run functions through HTTP, schedules, or email.
Use built-in modules Store data, access secrets, and call other functions.
Start with a function
Section titled “Start with a function”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.
Built-in capabilities
Section titled “Built-in capabilities”- Key-value storage persists data across executions.
- Secrets keeps credentials out of source code.
- Function invocation lets one function call another.
The former AI and agent modules are retired. Connect an external AI assistant through MCP instead of importing them.
Plans and limits
Section titled “Plans and limits”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.