Baserow MCP Server

Baserow MCP Server

MCP server enabling AI-powered Baserow database operations through natural language, with workspace, table, and row management.

Category
Visit Server

README

Baserow MCP Server

MCP License: MIT TypeScript Node.js

An MCP (Model Context Protocol) server that provides seamless integration between MCP-compatible clients (Claude Desktop, Cursor, Windsurf, etc.) and Baserow, enabling AI-powered database operations through natural language.

๐Ÿš€ Features

  • ๐Ÿ” Smart Authentication: Automatic token refresh with credentials or manual JWT/database tokens
  • ๐Ÿข Workspace Management: List, create, and manage Baserow workspaces
  • ๐Ÿ—„๏ธ Database Operations: Full control over databases within workspaces
  • ๐Ÿ“Š Table Management: Create, list, and manage tables with field definitions
  • ๐Ÿ“ Row CRUD Operations: Complete Create, Read, Update, Delete functionality
  • โšก Batch Operations: Efficient bulk operations for creating, updating, and deleting rows
  • ๐Ÿ” Advanced Queries: Pagination, filtering, and sorting support
  • ๐Ÿ’ก Natural Language: Use plain English to interact with your databases

๐Ÿ“‹ Prerequisites

๐Ÿ› ๏ธ Installation

  1. Clone the repository:

    git clone https://github.com/ayyazzafar/mcp-baserow.git
    cd mcp-baserow
    
  2. Install dependencies:

    npm install
    
  3. Configure authentication:

    cp .env.example .env
    

    Edit .env and add your credentials:

    # Recommended: Use credentials for automatic token refresh
    BASEROW_USERNAME=your@email.com
    BASEROW_PASSWORD=your_password
    
    # Optional: Override default API URL for self-hosted instances
    # BASEROW_API_URL=https://your-baserow-instance.com
    
  4. Build the project:

    npm run build
    

๐Ÿ”‘ Authentication Options

Option 1: Username/Password (Recommended)

Provides automatic token refresh and full API access:

BASEROW_USERNAME=your@email.com
BASEROW_PASSWORD=your_password

Option 2: JWT Token

For manual token management (expires after 60 minutes):

BASEROW_API_TOKEN=JWT_your_jwt_token_here

Option 3: Database Token

For database-specific operations (limited scope, never expires):

BASEROW_API_TOKEN=Token_your_database_token_here

โš™๏ธ Configuration

MCP Client Setup

<details> <summary>Claude Desktop</summary>

  1. Open configuration:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the Baserow server:

    {
      "mcpServers": {
        "baserow": {
          "command": "/path/to/mcp-baserow/start.sh"
        }
      }
    }
    

</details>

<details> <summary>Cursor</summary>

  1. Open Cursor settings
  2. Navigate to MCP Servers section
  3. Add:
    {
      "baserow": {
        "command": "/path/to/mcp-baserow/start.sh"
      }
    }
    

</details>

<details> <summary>Windsurf</summary>

  1. Open Windsurf configuration
  2. Add to MCP servers:
    {
      "baserow": {
        "command": "/path/to/mcp-baserow/start.sh"
      }
    }
    

</details>

  1. Restart your MCP client

๐Ÿ“š Usage Examples

Natural Language Commands

Once configured, you can use natural language in your MCP client:

  • "Show me all my Baserow workspaces"
  • "Create a new database called 'Project Tracker' in my workspace"
  • "List all tables in the Project Tracker database"
  • "Add a new row to the Tasks table with title 'Review PR' and status 'In Progress'"
  • "Update row 5 in the Tasks table to mark it as completed"
  • "Delete all rows in the Archive table that are older than 30 days"

Available MCP Tools

<details> <summary>Authentication Tools (3)</summary>

  • baserow_auth_status - Check authentication status and capabilities
  • baserow_auth_login - Login with credentials
  • baserow_auth_set_token - Manually set JWT or database token </details>

<details> <summary>Workspace Tools (4)</summary>

  • baserow_list_workspaces - List all workspaces
  • baserow_get_workspace - Get workspace details
  • baserow_create_workspace - Create new workspace
  • baserow_set_workspace - Set active workspace for operations </details>

<details> <summary>Database Tools (3)</summary>

  • baserow_list_databases - List databases in workspace
  • baserow_get_database - Get database details
  • baserow_create_database - Create new database </details>

<details> <summary>Table Tools (3)</summary>

  • baserow_list_tables - List tables in database
  • baserow_get_table - Get table with field definitions
  • baserow_create_table - Create new table </details>

<details> <summary>Row Operations (8)</summary>

  • baserow_list_rows - List rows with pagination/filtering
  • baserow_get_row - Get single row by ID
  • baserow_create_row - Create new row
  • baserow_update_row - Update existing row
  • baserow_delete_row - Delete row
  • baserow_batch_create_rows - Create multiple rows
  • baserow_batch_update_rows - Update multiple rows
  • baserow_batch_delete_rows - Delete multiple rows </details>

๐Ÿงช Development

Setup Development Environment

# Install dependencies
npm install

# Run TypeScript compiler in watch mode
npm run dev

# Run tests (when available)
npm test

Project Structure

mcp-baserow/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts          # MCP server entry point
โ”‚   โ”œโ”€โ”€ auth-manager.ts   # Authentication handling
โ”‚   โ”œโ”€โ”€ baserow-client.ts # Baserow API client
โ”‚   โ”œโ”€โ”€ tools/           # MCP tool implementations
โ”‚   โ”‚   โ”œโ”€โ”€ auth.ts      # Authentication tools
โ”‚   โ”‚   โ”œโ”€โ”€ workspace.ts # Workspace operations
โ”‚   โ”‚   โ”œโ”€โ”€ database.ts  # Database operations
โ”‚   โ”‚   โ”œโ”€โ”€ table.ts     # Table operations
โ”‚   โ”‚   โ””โ”€โ”€ row.ts       # Row CRUD operations
โ”‚   โ””โ”€โ”€ types/           # TypeScript type definitions
โ”œโ”€โ”€ dist/                # Compiled JavaScript
โ”œโ”€โ”€ examples/            # Usage examples
โ””โ”€โ”€ tests/              # Test files

๐Ÿค Contributing

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

Quick Start for Contributors

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ Changelog

See CHANGELOG.md for a list of changes in each version.

๐Ÿ› Troubleshooting

Common Issues

  1. "Authentication failed"

    • Verify your credentials in .env
    • Ensure your Baserow account is active
    • Check if you're using the correct API URL
  2. "No workspace_id provided"

    • Use baserow_set_workspace to set an active workspace
    • Or provide workspace_id parameter in database operations
  3. "Server disconnected"

    • Check your MCP client's logs:
      • Claude Desktop: ~/Library/Logs/Claude/mcp-server-baserow.log
      • Other clients: Check their respective log locations
    • Ensure Node.js v22+ is installed
    • Verify all dependencies are installed

Debug Mode

Enable debug logging by setting:

export DEBUG=baserow:*

๐Ÿ“„ License

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

๐Ÿ™ Acknowledgments

  • Anthropic for the MCP specification
  • Baserow for the excellent open-source database platform
  • The MCP community for examples and best practices

๐Ÿ”— Links


Made with โค๏ธ by the open-source community

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured