Build a Full-Stack App with Claude Code + InsForge — Zero Backend Code
Learn how to build a full-stack app using Claude Code and InsForge, the agent-native backend. Deploy InsForge on Sealos in 30 seconds and let your AI agent handle the entire backend.
Here's what happens every time. Your AI coding agent spits out a React dashboard in a few minutes, and then you spend the next two hours wiring up a database, auth, and API routes yourself. The frontend writes itself. The backend doesn't.
This tutorial fixes that. You'll deploy InsForge on Sealos, hook it up to Claude Code through MCP, and build a working Expense Tracker from start to finish. Everything happens in your terminal, through prompts. You won't write any backend code.
The problem: AI builds frontends, but backends are still on you
AI coding agents are genuinely good at generating UI code now. Tell Claude Code to build you a dashboard with a sidebar, charts, and a data table, and you'll have something working in minutes.
But the moment you need a real backend, things slow down. Database schemas, authentication, row-level security, file storage, API endpoints. You're back to writing migrations by hand, configuring auth providers, setting environment variables, and wondering why CORS is rejecting everything.
The frontend is automated. The backend still isn't. That's the gap.
Platforms like Supabase and Firebase help, but they were built for humans to operate. Your agent can call their APIs, sure, but it can't actually understand what your backend does, look at its current state, or figure out how to set things up from scratch. It's making API calls blind.
InsForge was built to fix that.
What is InsForge?
InsForge is an open-source backend platform designed for AI coding agents. Think "Supabase, but your agent actually understands the backend instead of just calling endpoints."
The idea: the platform puts a semantic layer between your agent and the backend. Instead of handing agents a pile of REST endpoints and hoping for the best, it gives them structured context. Documentation, schemas, state inspection, available operations. The agent can look at what exists, reason about what to do, and then do it.
What's included:
- PostgreSQL database with PostgREST. Define a schema, get a full CRUD API automatically.
- Authentication. Email/password, OAuth, JWT sessions. Works out of the box.
- File storage. S3-compatible. Upload, download, serve files.
- Edge functions. Serverless functions on Deno. Run custom logic without managing a server.
- Model gateway. OpenAI-compatible API that routes to multiple LLM providers through OpenRouter.
- Realtime. WebSocket pub/sub for collaborative features.
The thing that actually matters: it ships with an MCP (Model Context Protocol) server. Claude Code, Cursor, VS Code, or any MCP-compatible client can connect to your backend and operate it through natural language. Your agent doesn't just call APIs. It reads the docs, inspects the schema, and makes changes directly.
Deploy InsForge on Sealos in 30 seconds
No Docker. No Kubernetes. No SSH.
Sealos runs it as a managed template. The whole deployment looks like this:
Step 1: Open the template
Go to the template on the Sealos App Store and click "Deploy on Sealos".
Step 2: Configure
The deploy dialog has a few fields:
admin_password(required). This is your dashboard login.- OAuth settings (optional). Google/GitHub OAuth for your app's users.
- OpenRouter API key (optional). Only needed if you want the built-in model gateway.
For this tutorial, just set the password. Everything else you can configure later.
Sealos deploy dialog for InsForge showing admin_email, admin_password, and API key configuration fieldsStep 3: Deploy
Click Deploy. Sealos spins up:
- The app core
- PostgreSQL 16.4
- PostgREST (auto-generated REST API)
- Deno runtime (for edge functions)
- SSL certificate
- Persistent storage
Give it 2-3 minutes.
Heads up on first deploy:
- If deployment seems stuck past 3 minutes, the PostgreSQL extension init job is probably still running. Give it up to 5 minutes before troubleshooting.
- Default resource limits are conservative: Postgres gets 500m CPU / 512Mi RAM, other services get 200m / 256Mi each. Fine for this tutorial, but bump these up for anything beyond demos.
- Default storage is small: Postgres gets 1Gi, other PVCs ~103Mi each. Resize through the Sealos Canvas if you're storing real data.
- The Sealos template currently pins InsForge v1.5.0. Upstream is at v2.0.1 (March 2026). Check the template for updates if you need newer features.
Step 4: Open the dashboard
Sealos gives you an HTTPS URL for your instance. Click it, log in with your admin password.
InsForge dashboard after first login showing sidebar navigation, metric cards, quick start prompts, and MCP call recordsDone. You've got a self-hosted backend with a database, auth, storage, and serverless functions. Sealos handles scaling, backups, SSL, and failover. You pay for what you use.
What you just got: A full backend stack on Sealos' Kubernetes infrastructure. Postgres for data, PostgREST for instant APIs, Deno for serverless functions, S3-compatible storage for files. Everything behind one HTTPS endpoint with automatic SSL.
Connect Claude Code to InsForge via MCP
Now you're going to give Claude Code direct access to your backend.
Step 1: Install the MCP server
From your terminal:
This registers InsForge's hosted MCP endpoint with your local configuration. It creates (or updates) a .mcp.json file:
Step 2: Authenticate
Start Claude Code and run the MCP auth command:
This opens a browser window for OAuth authentication. Sign in with your InsForge account (the one tied to your Sealos deployment), and the MCP connection binds to your project.
Step 3: Verify it works
In Claude Code, send this:
If it comes back with a summary of what the backend can do, you're connected. The agent now has full context about your backend and the tools to work with it.
InsForge MCP connection showing backend documentation with service overview for Database, Auth, Storage, AI, Functions, and RealtimeSelf-hosted MCP note: The URL above (
mcp.insforge.dev) is InsForge's hosted endpoint. If you're running a self-hosted instance on Sealos, check your InsForge dashboard's Connect tab for the MCP configuration specific to your deployment. The hosted MCP authenticates via browser OAuth and binds to your InsForge project.
Using Cursor or Codex? The MCP server works with any MCP-compatible client. For Cursor, put the config in
.cursor/mcp.json. For Codex, use the MCP integration in the desktop app. The prompts below work the same way regardless of which tool you use.
Build the app: let the agent do the work
We're building an Expense Tracker. Simple enough to follow along, but it covers the important stuff: database, auth, row-level security, file storage, and a frontend that ties everything together.
Set up a project directory however you like (npm create vite@latest expense-tracker -- --template react-ts works). Then start Claude Code:
Everything from here is prompts.
Prompt 1: Set up the database
Claude Code calls the MCP tools, creates both tables, configures RLS on expenses only, grants the right permissions, seeds categories with icons and colors, and reloads the PostgREST schema cache. No migration file. No SQL editor.
InsForge dashboard showing the categories table with 6 seeded records: Food, Transport, Entertainment, Shopping, Bills, HealthPrompt 2: Configure authentication
Auth is live. Email/password signup, JWT sessions, 7-day duration. One prompt.
Prompt 3: Build the frontend
Claude Code generates the full React app: components, routing, state management, API calls. Because it just created the database schema, it already knows the types and table structure. The API integration code is correct from the start.
Under the hood, the generated code uses the InsForge SDK. Here's what a typical query looks like:
You don't have to write this yourself. The agent generates it. But it's worth seeing what the integration actually looks like.
Prompt 4: Add receipt uploads
The agent creates the storage bucket through MCP, configures access policies, and generates the upload/display components. What would normally be an afternoon of S3 configuration takes one prompt.
Prompt 5: Run it
Run npm run dev, open localhost:5173:
Sign up, add some expenses, upload a receipt. Everything persists. Auth works. Files are stored.
Five prompts, no backend code, and you've got a working app with auth, a database, and file storage.
Why InsForge over Supabase?
If you've used Supabase, InsForge will feel familiar. Same primitives: Postgres, Auth, Storage, Edge Functions. The difference is how your agent works with the backend.
Supabase gives your agent APIs. Your agent can call them, but it doesn't have context about what's configured, what the schema looks like, or what state things are in. It's making calls without seeing the full picture.
InsForge gives your agent context. Through the MCP server, the agent can read documentation, inspect schemas, check service state, and configure things directly. It operates the backend rather than just calling it.
A few other things worth noting:
- It's MCP-native. Connect Claude Code, Cursor, or any compatible client. No SDK wiring needed.
- It's fully self-hosted on Sealos. Your data, your infrastructure, pay-as-you-go pricing.
- It's open source, Apache 2.0. Source on GitHub.
Honest caveat: it's newer than Supabase. Smaller community, fewer integrations. If you need a battle-tested ecosystem with thousands of tutorials, Supabase is still the safer pick. But if your workflow is "describe what I want, let the agent build it," this is specifically built for that.
What's next
You've got a running app. Some places to go from here:
- Docs cover edge functions, realtime, the model gateway, and more.
- GitHub repo ⭐ if you want to follow development or contribute.
- One-click template on Sealos to deploy your own instance.
- Discord for help and project showcases.
- Sealos App Store has other one-click templates worth browsing.
Coming soon on this blog: a deep-dive comparison of InsForge and Supabase for AI-agent workflows, plus a series on building real projects (SaaS MVPs, internal tools, AI-powered apps) with this stack.
FAQ
Unify Your Entire Workflow.
Code in a ready-to-use cloud environment, deploy with a click. Sealos combines the entire dev-to-prod lifecycle into one seamless platform. No more context switching.
Related Articles
The Ultimate Open Source Marketing Toolkit for 2025
Discover the best open source tools for building a powerful, cost-effective marketing stack in 2025. Explore analytics, automation, email, SEO, and more—no vendor lock-in, full control, and maximum flexibility.
Best Google Analytics Alternatives for 2025: Privacy-Focused & Powerful Options
Discover the top alternatives to Google Analytics for 2025. Explore privacy-friendly, open-source, and feature-rich analytics tools to help you track website performance without compromising user privacy.
InsForge vs Supabase: Which Backend for AI-Powered Development?
InsForge vs Supabase: an honest comparison. Both are open-source PostgreSQL backends — one built for AI agents, one for humans. Which fits your workflow?
What Is Model Context Protocol (MCP)? Complete Guide to AI Integration 2025
Discover the Model Context Protocol (MCP), the revolutionary open standard transforming AI integration. Learn how MCP bridges AI models and external services, enabling seamless data access, tool integration, and enhanced AI reasoning capabilities in 2025.
Explore with AI
Get AI insights on this article