This guide will help you set up the Insforge Model Context Protocol (MCP) server to connect AI assistants like Claude, Cursor, and others to your Insforge backend.
- Node.js installed on your system
- An AI client that supports MCP (Claude Code, Cursor, Windsurf, Cline, etc.)
-
Create a Free Account
- Visit insforge.dev
- Sign up for a free account
- Click "Create New Project"
- Your project will be ready in ~3 seconds
-
Get Your API Credentials
- In your project dashboard, click the "Connect" button
- Select your AI tool (Cursor, Claude Code, Windsurf, etc.)
- Copy the auto-generated installation command
The command will look like:
npx @insforge/install --client cursor \ --env API_KEY=ik_d02a35cfd8056c18e9e59b34bf8bf773 \ --env API_BASE_URL=https://your-app.us-east.insforge.app
-
Note Your Credentials
- API Key:
ik_...(found in the command) - API Base URL:
https://your-app.us-east.insforge.app(your project URL)
- API Key:
Use the installation command you copied from the Insforge dashboard:
# Paste the command from your Insforge Connect page
npx @insforge/install \
--client cursor \
--env API_KEY=ik_your_api_key_here \
--env API_BASE_URL=https://your-app.us-east.insforge.appSupported Clients:
claude-code- Claude Codecursor- Cursor IDEwindsurf- Windsurf IDEcline- Cline VS Code Extensionroocode- Roo Code VS Code Extensioncodex- Codextrae- Trae
If you prefer to manually configure your MCP client, add this to your MCP settings file:
Claude Code (~/.claude/claude_mcp_config.json):
{
"mcpServers": {
"insforge": {
"command": "npx",
"args": ["-y", "@insforge/mcp@latest"],
"env": {
"API_KEY": "ik_your_api_key_here",
"API_BASE_URL": "https://your-app.us-east.insforge.app"
}
}
}
}Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"insforge": {
"command": "npx",
"args": ["-y", "@insforge/mcp@latest"],
"env": {
"API_KEY": "ik_your_api_key_here",
"API_BASE_URL": "https://your-app.us-east.insforge.app"
}
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"insforge": {
"command": "npx",
"args": ["-y", "@insforge/mcp@latest"],
"env": {
"API_KEY": "ik_your_api_key_here",
"API_BASE_URL": "https://your-app.us-east.insforge.app"
}
}
}
}After installation, restart your AI client to load the Insforge MCP server.
In your AI assistant, send a test message to verify the MCP server is working:
InsForge is my backend platform, what is my current backend structure?
The AI will use the get-backend-metadata tool to retrieve information about your Insforge backend. If successful, you'll see details about your:
- Database tables and schemas
- Storage buckets
- Edge functions
- Available tools and capabilities
Example response:
I can see your Insforge backend has the following structure:
- Tables: users, posts, comments
- Storage buckets: avatars, media
- Edge functions: None configured yet
Your backend is ready to use! What would you like to build?
- ✅ Keep API keys secure and never commit them to version control
- ✅ Use separate API keys for different projects
- ✅ Rotate API keys periodically
- ✅ Monitor API key usage through the Insforge dashboard
- 🚫 Never share API keys with untrusted parties
⚠️ Review AI-generated code before deploying to production
- Verify your API Base URL is correct (should be from insforge.dev)
- Check your internet connection
- Ensure there are no firewall rules blocking the connection
- Verify your API key is correct (format:
ik_...) - Check that the API key hasn't been revoked or expired
- Generate a new API key from the Insforge dashboard
- Ensure Node.js is installed:
node --version - Verify npx is available:
npx --version - Try installing the package globally:
npm install -g @insforge/mcp
- Check that you're editing the correct MCP configuration file for your client
- Ensure the file path exists (create directories if needed)
- Restart your AI client after making changes
To test the latest development version of the MCP server:
npx @insforge/install \
--client cursor \
--env API_KEY=your_api_key \
--env API_BASE_URL=https://your-app.us-east.insforge.app \
--devFor custom MCP server installations, you can install the package globally:
npm install -g @insforge/mcpThen reference it in your MCP config:
{
"mcpServers": {
"insforge": {
"command": "insforge-mcp",
"env": {
"API_KEY": "your_api_key",
"API_BASE_URL": "https://your-app.us-east.insforge.app"
}
}
}
}Once connected, you can:
- Ask the AI to create database tables
- Upload and manage files in storage buckets
- Create serverless edge functions
- Manage user authentication
- Query and manipulate data
- Build full-stack applications using natural language
For more information, visit the Insforge documentation.
- Documentation: https://docs.insforge.dev
- Discord: https://discord.gg/MPxwj5xVvW
- GitHub: https://github.com/InsForge/insforge
- Email: info@insforge.dev