Sign In

insforge-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

insforge-mcp

MCP (Model Context Protocol) server for Insforge backend-as-a-service

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Insforge MCP Server

Node.js Version

MCP (Model Context Protocol) server for Insforge - an open-source backend-as-a-service platform.

Overview

The Insforge MCP Server enables AI agents to interact with Insforge backends through the Model Context Protocol. It provides a comprehensive set of tools for database management, authentication, storage operations, and backend configuration.

Features

  • 🗄️ Database Management: Create, modify, and query PostgreSQL tables with automatic schema management
  • 🔐 Authentication API: Manage users, API keys, and JWT tokens
  • 📁 Storage Operations: Handle file uploads and bucket management
  • 📚 Documentation Access: Built-in access to API documentation
  • 🤖 AI-Optimized: Designed for seamless integration with AI agents and LLMs

Prerequisites

  • Node.js 16.0.0 or higher
  • An Insforge instance running (local or remote)
  • API key from your Insforge instance

Installation

# Clone the repository
git clone https://github.com/InsForge/insforge-mcp.git
cd insforge-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

API Key

You can provide your Insforge API key in three ways:

  • Command line argument:

    node dist/index.js --api_key ik_your_api_key_here
    
  • Environment variable:

    export API_KEY=ik_your_api_key_here
    node dist/index.js
    
  • Per-tool basis: Include api_key in individual tool calls

API Base URL

By default, the MCP server connects to http://localhost:3000. To use a different Insforge instance:

export API_BASE_URL=https://your-insforge-instance.com
node dist/index.js

Usage

Development Mode

npm run dev

Production Mode

npm run build
npm start

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "insforge": {
      "command": "node",
      "args": ["/path/to/insforge-mcp/dist/index.js", "--api_key", "ik_your_api_key_here"],
      "env": {
        "API_BASE_URL": "http://localhost:3000"
      }
    }
  }
}

Available Tools

Documentation Tools

  • get-instructions: Retrieves the latest Insforge documentation and guidelines
  • get-db-api: Returns database API documentation including CRUD operations
  • get-auth-api: Returns authentication API documentation
  • get-storage-api: Returns file storage API documentation

Database Tools

  • create-table: Create a new table with explicit schema definition

    {
      "collection_name": "users",
      "columns": [
        {"name": "email", "type": "TEXT", "nullable": false},
        {"name": "age", "type": "INTEGER", "nullable": true}
      ]
    }
    
  • delete-table: Permanently delete a table and all its data

  • modify-table: Add, drop, or rename columns in existing tables

  • get-table-schema: Retrieve the schema of a specific table

  • get-backend-metadata: Get comprehensive backend metadata and statistics

Storage Tools

  • create-bucket: Create a new storage bucket
  • list-buckets: List all available storage buckets
  • delete-bucket: Delete a storage bucket

Examples

Creating a Table

// Tool: create-table
{
  "collection_name": "products",
  "columns": [
    {"name": "name", "type": "TEXT", "nullable": false},
    {"name": "price", "type": "REAL", "nullable": false},
    {"name": "stock", "type": "INTEGER", "nullable": false},
    {"name": "description", "type": "TEXT", "nullable": true}
  ]
}

Modifying a Table

// Tool: modify-table
{
  "collection_name": "products",
  "add_columns": [
    {"name": "category", "type": "TEXT", "nullable": true}
  ],
  "rename_columns": {
    "stock": "quantity"
  }
}

Development

Project Structure

insforge-mcp/
├── src/
│   ├── index.ts          # Main MCP server implementation
│   └── response-handler.ts # API response handling utilities
├── package.json
├── tsconfig.json
└── README.md

Running Tests

npm test

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Error Handling

The MCP server provides detailed error messages for common issues:

  • Missing API Key: Ensure you've provided a valid API key
  • Connection Errors: Verify your Insforge instance is running and accessible
  • Permission Errors: Check that your API key has the necessary permissions
  • Schema Validation: Ensure column types are valid (TEXT, INTEGER, REAL, BLOB)

Security

  • API keys are never logged or exposed in error messages
  • All communication with Insforge uses secure HTTPS in production
  • Supports row-level security (RLS) for multi-tenant applications

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Built with ❤️ by the Insforge team

Keywords

mcp

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts