# FCP: Let Any AI Agent Safely Drive Your Web App

> Your coding agent adds an MCP server to your web app. Your users connect their own AI (Claude, ChatGPT, Cursor, Codex, Antigravity…) and it reads the page they have open, clicks and types there, and they approve each batch. OAuth + access tokens, private pages hidden, runs on your own server.

FCP: Let Any AI Agent Safely Drive Your Web App is a paid AI agent skill on Agensi by Karma Wangchuk, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Karma Wangchuk](https://www.agensi.io/creators/karma-wangchuk)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fcp-let-any-ai-agent-safely-drive-your-web-app
- Tags: llm-ops, ai-agents, api, mcp, browser-automation, oauth, web-app, remote-control

## What it does

- Adds an MCP endpoint, OAuth 2.1 sign-in and personal access tokens to your existing app, in your own stack
- Lets a user's own AI read the page they have open, fill forms, click buttons and see a screenshot of their
- Asks the user to approve each batch of actions in the page (Allow once / Deny), unless they turn on auto-run
- Hides private pages, passwords, hidden fields and one-time codes from the AI, always
- Tests the result like an AI client would (14 checks, including one real approved action)
- Writes the Connect your AI page for your users, with ready config for 9 AI apps

## Who it's for

- **SaaS founders:** Customers can ask their own AI to fill things in inside your app Try: "Add FCP to my Next.js app"
- **Internal-tool builders:** An admin tool that Cursor or Codex can operate in the open tab Try: "Make my Flask admin an MCP server my team's AI can use"
- **Agencies:** A repeatable AI-ready add-on for client sites, on any backend Try: "Add FCP to this Django project, private paths settings and billing"

## About this skill

FCP lets your users' own AI (Claude, ChatGPT, Cursor and others) work **inside your web app, in their own browser tab**, without you building an AI feature or paying for one.

Install the skill in Claude Code, Codex, Cursor, Antigravity or any SKILL.md agent and say "add FCP". The agent reads your project, writes a short plan, asks you four questions once (private pages, who may use it, public address, sign-in options) and builds it:

- **An MCP server in your app** with four tools: inspect the open page, act on it (fill, click, select, scroll, navigate), view a screenshot, list the user's tabs.
- **Sign-in the way AI apps expect:** OAuth 2.1 with dynamic client registration, PKCE, a consent page and rotating refresh tokens, plus personal access tokens for clients that prefer a key.
- **A small browser script** (framework-free, works with React and SPAs) that shows a rust frame while the AI is connected, "AI is typing in Title (2 of 5)", and an approval box listing exactly what will happen.
- **A settings panel** for your users: FCP on/off, run automatically, connected AI apps with Revoke, create a token.

**Safe by design:** the user approves each batch, and the server re-checks it. Settings, account, billing and admin pages are never sent to the AI. Password, hidden, file and one-time-code fields are never read. Each user reaches only their own tabs. Tokens are stored hashed. Revoking stops it at once.

**Runs on your own server.** Nothing leaves your infrastructure except to the AI app the user connected.

**Comes with a working reference:** a complete server and a fictional demo app (Acme Tasks) in plain Python, so you can try it in 2 minutes before touching your project.

## Requires

- Python 3.9+
- A web app with user sign-in
- Optional: Google Chrome or Edge for tab screenshots

A public https address for claude.ai and ChatGPT.

## Known limitations

This skill does not set up your server for you or create your app accounts. You must deploy the code and set your public web address yourself.

## Technical details

Built for Claude Code, Codex, Cursor, Antigravity and other agents that read SKILL.md (per-agent notes included).
- MCP Streamable HTTP (2025-06-18): JSON answers, 202 for notifications, 401 with WWW-Authenticate resource_metadata.
- OAuth 2.1: protected-resource and authorization-server metadata, dynamic client registration, PKCE S256, consent page with CSRF, single-use codes, rotating refresh tokens, resource check.
- Personal access tokens (fcp_ prefix, stored as sha256).
- Transport: long polling held 25 s (shorter on serverless hosts), optional SSE. No Firebase or hosted relay.
- Storage mapping for SQL, Redis and document databases; porting notes for Flask, FastAPI, Django, Express, Next.js, Rails, Laravel and SPAs.
- Browser side: one script plus CSS, configured by data attributes; private-path regex shared with the server.
- Scripts: fcp_server.py (reference server + demo), fcp_check.py (14-check verifier), client_config.py (configs for Claude Code, Claude.ai, ChatGPT, Codex, Cursor, Antigravity, Gemini CLI, VS Code, generic). Python 3.9+, standard library only.
- Security checklist plus 8 tests to port into your app's test suite.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the FCP: Let Any AI Agent Safely Drive Your Web App skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this help me interact with my web app?

This skill adds a secure bridge to your website that allows your AI agent to see what is on the page you have open, type in fields, and click buttons just as you would. It is designed to let your AI help you with repetitive tasks or data entry inside your own web applications.

### Can the AI agent see my private information or take actions without my permission?

Safety is a priority as the AI cannot take any action without you clicking an approval button on your screen, unless you specifically turn on an automatic mode. The skill also blocks the AI from seeing or interacting with sensitive areas like your passwords, billing pages, and account settings.

### What specific files and tools will be added to my project?

You will receive a plan for the integration, a small browser script, and server side code tailored to your website. You also get a settings page for your app where you can manage connections and a guide to help you link your favorite AI apps to the new interface.

### Is my data sent anywhere?

No service of ours sees anything. FCP runs on your own server and database, with no Firebase or relay service. Page content goes only to the AI app that your user connected and approved, and private pages and secret fields never go at all.

### How do I tell my AI agent to start setting this up?

You can start by asking your agent to add FCP to your specific web app or tell it you want to let AI agents control your site. It can also help you check if an existing connection is working correctly or create a document to help you connect new AI tools.

### Does it work with ChatGPT and claude.ai?

Yes, through OAuth, once your app has a public https address. Claude Code, Codex, Cursor, Antigravity, Gemini CLI and VS Code also work on localhost.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
