Codehooks.io MCP Server

Codehooks.io MCP Server

Enables AI agents to manage databases, deploy serverless JavaScript functions, and handle cloud file storage on the Codehooks.io platform. It supports full CRUD operations on collections, key-value storage with TTL, and comprehensive system logging.

Category
访问服务器

README

Codehooks.io MCP Server

An MCP (Model Context Protocol) server that provides AI agents with database operations, serverless code deployment, and file management capabilities on the Codehooks.io platform.

Available functionality

Database & Collections

  • Query and update collections (including metadata) with filters and sorting
  • Create and manage collections
  • Import/export data (JSON,JSONL,CSV)
  • Add schemas and indexes, cap collections

Code Deployment

  • Deploy JavaScript serverless functions

File Operations

  • Upload files to cloud storage
  • List and browse files
  • Delete files
  • Inspect file metadata

Key-Value Store

  • Store key-value pairs
  • Retrieve one or many key-value pairs
  • Delete key-value pairs
  • Set time-to-live (TTL) for key-value pairs

System Operations

  • View application logs
  • Access API documentation (local documentation for the MCP agent)

Setup

Get Codehooks Admin Token (keep it secret!)

coho login
coho add-admintoken

Create MCP Server Script

Create a folder for your MCP server scripts:

mkdir ~/mcp-servers
cd ~/mcp-servers

For macOS/Linux - Create codehooks.sh:

#!/bin/bash

# Set PATH to include common Docker locations
export PATH="/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:$PATH"

exec docker run --rm -i \
  --pull always \
  -e CODEHOOKS_PROJECT_NAME=your_project_name \
  -e CODEHOOKS_ADMIN_TOKEN=your_admin_token \
  -e CODEHOOKS_SPACE=your_space_name \
  ghcr.io/restdb/codehooks-mcp:latest

Make it executable:

chmod +x ~/mcp-servers/codehooks.sh

For Windows - Create codehooks.bat:

@echo off
docker run --rm -i ^
  --pull always ^
  -e CODEHOOKS_PROJECT_NAME=your_project_name ^
  -e CODEHOOKS_ADMIN_TOKEN=your_admin_token ^
  -e CODEHOOKS_SPACE=your_space_name ^
  ghcr.io/restdb/codehooks-mcp:latest

Replace your_project_name, your_admin_token, and your_space_name with your actual values.

Configure for Claude Desktop

Add to your claude_desktop_config.json:

macOS/Linux:

{
  "mcpServers": {
    "codehooks": {
      "command": "/Users/username/mcp-servers/codehooks.sh"
    }
  }
}

Windows:

{
  "mcpServers": {
    "codehooks": {
      "command": "C:\\Users\\username\\mcp-servers\\codehooks.bat"
    }
  }
}

Configure for Cursor

Add to your ~/.cursor/mcp.json:

macOS/Linux:

{
  "mcpServers": {
    "codehooks": {
      "command": "/Users/username/mcp-servers/codehooks.sh"
    }
  }
}

Windows:

{
  "mcpServers": {
    "codehooks": {
      "command": "C:\\Users\\username\\mcp-servers\\codehooks.bat"
    }
  }
}

Replace username with your actual username.

Example Requests

  • "Build a complete survey system: create a database, deploy an API to collect responses, and add search/analytics endpoints"
  • "Set up a real-time inventory tracker: import my product CSV, create stock update webhooks, and build low-stock alerts"
  • "Build a webhook processing pipeline: receive webhooks from multiple sources, transform and validate data, then trigger automated actions"
  • "Build a content management system: create file upload endpoints, set up a metadata database, and deploy content delivery APIs"
  • "Set up automated data backups: export my collections to JSON files, store them with timestamps, and create restoration endpoints"

How These Examples Work

Complete Survey System

The AI agent would:

  1. Create collections (surveys, responses) for data storage
  2. Add schemas for data validation and structure
  3. Deploy JavaScript endpoints like POST /surveys and GET /surveys/:id/analytics
  4. Create indexes on response fields for fast searching and analytics

Real-time Inventory Tracker

The AI agent would:

  1. Import your CSV to populate the products collection
  2. Deploy webhook handlers for POST /inventory/update and GET /inventory/low-stock
  3. Set up key-value storage for alert thresholds and settings
  4. Create indexes on SKU and stock levels for real-time queries

Webhook Processing Pipeline

The AI agent would:

  1. Deploy webhook receivers like POST /webhooks/stripe and POST /webhooks/github
  2. Create collections for webhook_logs, processed_events, and failed_events
  3. Set up data transformation rules and validation schemas for each webhook source
  4. Use key-value store for rate limiting and duplicate detection with TTL
  5. Deploy action triggers that send emails, update databases, or call other APIs based on webhook data

Content Management System

The AI agent would:

  1. Create collections for content, media, and users
  2. Deploy file upload endpoints with POST /upload and GET /content/:id
  3. Upload and manage static files for content delivery
  4. Store metadata linking files to content records with search indexes

Automated Data Backups

The AI agent would:

  1. Export collections to JSON format with timestamps
  2. Upload backup files to cloud storage automatically
  3. Deploy restoration APIs like GET /backups and POST /restore/:backup-id
  4. Store backup metadata in key-value store for tracking and management

Each example demonstrates how multiple MCP tools work together to create complete, production-ready systems through natural conversation with your AI agent.

Security Researchers

We thank the following individuals for responsible disclosure and helping improve the security of this project:

  • Liran Tal – Reported a command injection vulnerability in the query_collection tool (May 2025)

License

This project is licensed under the MIT License.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选