Connect Claude and other AI assistants to your serverless functions

Use the Model Context Protocol to let AI agents discover, execute, and interact with your Microfn functions

"Hey Claude, check the weather in Tokyo using my get-weather function"

"Create a new function that sends a Slack message when called"

"Run my daily-report function and send the output to Discord"

"List all my functions and show me which ones have cron triggers"

What is MCP?

The Model Context Protocol (MCP) enables AI assistants to securely connect to your external systems and data. With MicroFn's MCP integration, your AI assistants can directly trigger and interact with your serverless functions.

This integration provides another powerful way to trigger MicroFn functions beyond HTTP requests, allowing for dynamic, AI-driven interactions with your serverless infrastructure.

Claude executing a microfn function via MCP

Setup as Remote MCP

For AI assistants like Claude that support remote MCP servers:

  1. Open your AI assistant's remote MCP / integrations page
  2. Add the MicroFn MCP server URL:
https://mcp.microfn.dev/mcp

The setup process will guide you through authentication with your MicroFn account.

Quick Setup via CLI

If you're using Codex or Claude Code, you can add MicroFn with a single command:

Codex

codex mcp add microfn --url https://mcp.microfn.dev/mcp

Claude Code (MCP)

claude mcp add --transport http microfn https://mcp.microfn.dev/mcp

Claude Code (Plugin)

claude plugin marketplace add microfnhq/skills
claude plugin enable microfn

Or enable it interactively with /plugins

Setup for Local MCP Clients

For local MCP clients, configure your MCP client with the following settings:

{
  "mcpServers": {
    "microfn": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.microfn.dev/mcp"
      ],
      "command": "npx"
    }
  }
}

This configuration will prompt you to authenticate with MicroFn when first connecting.

Authentication

MicroFn uses OAuth for secure MCP authentication. When you first connect through MCP:

  1. Your AI assistant will open a browser window
  2. Sign in to your MicroFn account
  3. Authorize the MCP connection

That's it! The OAuth flow handles everything securely, and your AI assistant will have access to your functions.

Available Capabilities

Once connected, AI assistants can:

  • Discover and list your available functions
  • Execute functions with parameters
  • Retrieve function execution results
  • Access function metadata and documentation
  • Monitor function performance and logs

This enables powerful AI-driven workflows and automation using your serverless functions.

Resources

Learn more about MCP and how to use it effectively:

Need Help?

If you need assistance with MCP setup or have questions about the integration, contact us at: [email protected]