Skip to main content
Glama

NocoDB MCP Server

by gordo-v1su4
README.mdโ€ข5.2 kB
# NocoDB MCP Server A standard FastMCP Model Context Protocol server for seamless NocoDB integration with Claude Code. ## ๐ŸŽฏ What This Is This MCP server provides Claude Code users with direct access to NocoDB operations. Built using the standard FastMCP library with streamable-http transport for remote hosting. Perfect for Discord Heart Reactions workflow and other NocoDB automation projects. ## โœจ Features - **Complete NocoDB API Integration** - All CRUD operations supported - **Discord Heart Reactions Optimized** - Built specifically for the Discord workflow - **Production Ready** - Health checks, rate limiting, graceful shutdown - **Docker Ready** - Easy deployment with Docker or Coolify - **Auto-deployment** - GitHub Actions for automated builds - **Comprehensive Monitoring** - Built-in health checks and metrics ## ๐Ÿš€ Quick Deployment ### Option 1: Coolify (Recommended) 1. **Create New Resource** โ†’ Docker Image 2. **Image**: `gordo-v1su4/nocodb-mcp-server:latest` 3. **Port**: `3001` 4. **Environment Variables**: - `NOCODB_API_TOKEN=your_token` - `NOCODB_URL=https://nocodb.v1su4.com` - `PORT=3001` 5. **Health Check**: `/health` endpoint 6. Deploy and enjoy! ### Option 2: Docker ```bash # Use pre-built image docker run -p 3001:3001 \ -e NOCODB_API_TOKEN=your_token \ -e NOCODB_URL=https://nocodb.v1su4.com \ gordo-v1su4/nocodb-mcp-server:latest # Or build locally bun run docker-build bun run docker-run ``` ### Option 3: Docker Compose ```bash # Standard deployment bun run compose-up # With monitoring (Prometheus/Loki) docker-compose --profile monitoring up -d ``` ## ๐Ÿ”ง Environment Variables | Variable | Required | Default | Description | |----------|----------|---------|-------------| | `NOCODB_API_TOKEN` | Yes | - | Your NocoDB API token | | `NOCODB_URL` | No | `https://nocodb.v1su4.com` | NocoDB instance URL | | `PORT` | No | `3001` | Server port | | `NODE_ENV` | No | `production` | Environment | | `LOG_LEVEL` | No | `info` | Logging level | ## ๐Ÿ“Š Available MCP Tools ### Connection & Management - `nocodb_test_connection` - Test NocoDB connection - `nocodb_list_projects` - List all projects - `nocodb_list_tables` - List tables in project ### Data Operations - `nocodb_get_records` - Retrieve records with pagination - `nocodb_create_record` - Create new records - `nocodb_update_record` - Update existing records - `nocodb_delete_record` - Delete records - `nocodb_search_records` - Search with filters ### Specialized Tools - `nocodb_create_discord_reactions_table` - Create Discord reactions table - `nocodb_get_analytics` - Get Discord reactions analytics ## ๐Ÿงช Testing ### Health Check ```bash curl https://mcp.v1su4.com/health ``` ### Tools List ```bash curl https://mcp.v1su4.com/tools ``` ### Test Tool Call ```bash curl -X POST https://mcp.v1su4.com/call \ -H "Content-Type: application/json" \ -d '{"name": "nocodb_test_connection", "arguments": {"api_token": "your_token"}}' ``` ## ๐Ÿ“‹ Claude Code Integration 1. **Update MCP Configuration**: ```json { "mcpServers": { "nocodb": { "command": "node", "args": ["-e", "console.log(JSON.stringify({method:'GET',url:'https://mcp.v1su4.com'}))"], "env": { "NOCODB_API_TOKEN": "${NOCODB_API_TOKEN}" } } } } ``` 2. **Set Environment Variable**: ```bash export NOCODB_API_TOKEN="your_nocodb_api_token" ``` 3. **Restart Claude Code** and enjoy NocoDB tools! ### Option 2: Claude CLI (Recommended for newer versions) 1. **Add your MCP server**: ```bash claude mcp add --transport http nocodb https://mcp-nocodb-v1su4.com ``` 2. **Manage existing connections**: ```bash # List all connected servers claude mcp list # Remove old connections (if needed) claude mcp remove server-name ``` 3. **Test the connection**: ```bash claude mcp test nocodb ``` ## ๐Ÿ—๏ธ Architecture ``` Claude Code โ†’ Hosted FastMCP Server (SSE) โ†’ NocoDB API ``` - **FastMCP Server**: Standard MCP server with streamable-http transport - **Server-Sent Events**: Real-time communication via SSE protocol - **NocoDB API**: Your actual database instance ## ๐Ÿ“š Documentation - **[Coolify Deployment Guide](coolify-deployment-guide.md)** - Detailed deployment instructions - **[API Reference](nocodb-mcp-tools.json)** - All available tools and schemas - **[Docker Configuration](Dockerfile)** - Container setup details ## ๐Ÿ”’ Security - Rate limiting to prevent abuse - API token authentication required - HTTPS enforced - Comprehensive logging - Environment variable configuration ## ๐Ÿ“ˆ Monitoring - Real-time health checks - Performance metrics - Request logging - Error tracking - Resource usage monitoring ## ๐Ÿค Contributing 1. Fork the repository 2. Create a feature branch 3. Make your changes 4. Test thoroughly 5. Submit a pull request ## ๐Ÿ“„ License MIT License - feel free to use and modify as needed. ## ๐Ÿ†˜ Support For issues or questions: 1. Check the health endpoint 2. Review server logs 3. Test with the CLI tools 4. Check environment variables --- **Built for Discord Heart Reactions workflow** ๐ŸŽ‰

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gordo-v1su4/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server