Codehooks.io MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEHOOKS_SPACE | Yes | The specific space name within your Codehooks.io project. | |
| CODEHOOKS_ADMIN_TOKEN | Yes | Your Codehooks.io admin token, which can be generated using 'coho add-admintoken'. | |
| CODEHOOKS_PROJECT_NAME | Yes | The name of your Codehooks.io project. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| query_collectionA | Query data from a collection. Supports URL-style, regex, and MongoDB-style JSON queries with comparison operators. Can also query system collections like '_hooks' which contains deployment metadata including available API endpoints. Using delete, update or replace is very powerful but also dangerous, so use with caution. |
| deploy_codeA | Deploy JavaScript code to Codehooks.io project. MINIMAL WORKING EXAMPLE: INSTANT CRUD BACKEND: KEY REQUIREMENTS:
DOCUMENTATION:
Note: Codehooks.io has CORS built-in by default, so no additional CORS middleware is needed. |
| file_uploadC | Upload files to server |
| file_deleteC | Delete a file from server |
| file_listC | List files from server |
| create_indexC | Add field(s) to a query index |
| drop_indexC | Remove field(s) from a query index |
| create_collectionC | Create a new collection |
| drop_collectionC | Delete a collection |
| add_schemaC | Add a JSON schema to a collection. Provide the schema content as a JSON string. |
| remove_schemaC | Remove JSON schema from a collection |
| cap_collectionD | Cap a collection |
| uncap_collectionC | Remove cap from a collection |
| importB | Import data from file or content. Provide either 'filepath' (for files inside Docker container) or 'content' (JSON/CSV data as string). |
| exportA | Export data from collection. If no filepath specified, returns the exported content directly. If filepath specified, saves to file inside Docker container. |
| kv_getB | Retrieve key-value pair(s) from a space. Supports pattern matching with wildcards. |
| kv_setC | Set key-value pair in a space with optional TTL and keyspace. |
| kv_delC | Delete key-value pair in a space. |
| logsC | Show system logs for a space with filtering and follow options. |
| docsB | Get comprehensive Codehooks.io documentation and examples. Includes complete ChatGPT prompt, setup instructions, code examples, and API reference. |
| collectionC | Show collections for space. Lists all collections available in the current space. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/RestDB/codehooks-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server