Skip to main content

How to use Floorp MCP Server with OpenCode

· Floorp, MCP, OpenCode, Bun

Introduction

If you are using OpenCode and want your coding agent to interact with the Floorp browser, you can connect them through the floorp-mcp-server package.

This MCP server is from the official Floorp project and is published in the Floorp-Projects/floorp-mcp-server repository.

This setup allows OpenCode to use Floorp as an MCP tool for tasks such as listing tabs, reading page content, opening new tabs, navigating pages, and performing basic browser automation.

In this guide, I will show the exact setup I used with bunx.

Requirements

Before starting, make sure you have:

You also need to enable Floorp MCP support manually.

Enable MCP inside Floorp

Open Floorp and go to:

about:config

Then search for:

floorp.mcp.enabled

Set it to:

true

Without this option enabled, OpenCode will not be able to talk to Floorp even if the MCP server is configured correctly.

OpenCode config location

For a global user-wide setup, OpenCode reads its config from:

~/.config/opencode/opencode.json

You can also use a project-level opencode.json, but for a browser MCP like this, a global config usually makes more sense.

Add Floorp MCP server to OpenCode

Edit your OpenCode config file and add the following:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "floorp": {
      "type": "local",
      "command": ["bunx", "floorp-mcp-server"],
      "enabled": true
    }
  }
}

Why this config works

Optional manual test

Before testing it through OpenCode, you can check whether the package starts correctly by running:

bunx floorp-mcp-server

If Floorp is running and MCP is enabled in about:config, the server should start normally.

Restart OpenCode

After saving the config, restart OpenCode or open a new session.

Once loaded correctly, OpenCode should be able to access Floorp tools for actions such as:

Use /mcp to list all MCP servers

If you want to quickly check whether OpenCode has loaded your MCP configuration, use the /mcp command inside OpenCode.

/mcp

This lists the MCP servers available in the current session. If everything is configured correctly, you should see floorp in the list.

This is useful to confirm that:

floorp connected

Example prompt

You can test it with a simple prompt like this:

Can you see my Floorp tabs? Use floorp.

Or:

Open a new tab in Floorp and go to https://example.com. Use floorp.

Troubleshooting

If it does not work, check these items first:

Conclusion

That is all you need to connect Floorp MCP Server to OpenCode.

Using bunx keeps the setup simple, and once it is configured properly, OpenCode can directly interact with your browser through Floorp’s MCP bridge.