mudbase-mcp-server
You can use this MCP server to inspect and manage Mudbase project data, search it, and manage storage files through authenticated tools.
List collections and inspect full collection schemas and permissions.
List, filter, sort, paginate, fetch, create, update, and permanently delete documents.
Run full-text project-wide searches, optionally scoped to collections or fields.
List storage buckets and files, inspect file metadata, upload base64 files, delete files, and generate time-limited signed download URLs.
Requires
MUDBASE_API_KEYand aprojectIdfor each tool; document and file deletion operations are marked destructive.If
MUDBASE_ENABLE_SANDBOX_TOOLSis enabled, additional tools can create and manage cloud sandbox sessions, run commands, read/write files, start services, and expose ports, with some actions billed as compute.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mudbase-mcp-server Show me all documents in the articles collection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mudbase-mcp-server
An MCP (Model Context Protocol) server that exposes Mudbase's database, storage, and search capabilities as tools for Claude Code, Claude Desktop, and any other MCP client.
Every request is authenticated with a Mudbase API key, so this connects your assistant directly to real data in your own Mudbase project: list and query collections, read and write documents, search across a project, and manage files in storage.
Requirements
A Mudbase account and project. If you don't have one yet, create one at console.mudbase.dev.
An API key for that project, generated from your project's API Keys settings.
Node.js 18 or newer (only needed to run
npx; most MCP clients already bundle Node).
Related MCP server: workspace-mcp
Install
The package is published on npm as mudbase-mcp-server. There is nothing to install by hand:
your MCP client runs it with npx and gets the latest published version on demand.
Cursor
Add this to ~/.cursor/mcp.json (global) or .cursor/mcp.json (one project), then reload
Cursor's MCP servers:
{
"mcpServers": {
"mudbase": {
"command": "npx",
"args": ["-y", "mudbase-mcp-server"],
"env": { "MUDBASE_API_KEY": "ak_..." }
}
}
}Claude Code
The quickest route is one command (replace ak_... with your key):
claude mcp add mudbase -e MUDBASE_API_KEY=ak_... -- npx -y mudbase-mcp-serverOr add this to your Claude Code MCP configuration:
{
"mcpServers": {
"mudbase": {
"command": "npx",
"args": ["-y", "mudbase-mcp-server"],
"env": { "MUDBASE_API_KEY": "ak_..." }
}
}
}Replace ak_... with a real API key from your Mudbase project settings. Restart Claude Code (or
reload MCP servers) and the mudbase_* tools become available.
Other MCP clients
Any client that can launch an MCP server over stdio works the same way: run npx mudbase-mcp-server as the command, with MUDBASE_API_KEY set in its environment. Consult your
client's own docs for where to put the command / args / env fields; the shape above is the
common one.
Configuration
Environment variable | Required | Description |
| Yes | Your Mudbase project API key. The server refuses to start without it and prints a clear error explaining how to set it. |
| No | Override the API base URL (defaults to |
| No | Set to |
The API key is read from the environment only. It is never logged, never written to disk, and never hardcoded anywhere in this package.
Available tools
The server registers 14 tools by default. The sandbox tools are opt-in, see Sandbox tools.
Collections (read-only schema access)
mudbase_list_collections: list every collection in a project, with each field's declared type.mudbase_get_collection: get one collection's full field schema and permission settings.
Documents (collection data)
mudbase_list_documents: list documents in a collection, with pagination, sorting, and a JSON filter.mudbase_get_document: fetch a single document by ID.mudbase_create_document: create a new document.mudbase_update_document: partially update an existing document.mudbase_delete_document: permanently delete a document.
Search
mudbase_search_documents: full-text search across a project, optionally scoped to specific collections or fields.
Storage
mudbase_list_buckets: list the storage buckets in a project.mudbase_list_files: list files in a bucket, with search and MIME-type filters.mudbase_get_file: get metadata for a single stored file.mudbase_upload_file: upload a file from base64-encoded content.mudbase_delete_file: permanently delete a file.mudbase_get_file_download_url: generate a time-limited signed download URL for a file.
Every tool is a thin, typed wrapper over one real Mudbase API endpoint; none of them add new
business logic beyond request shaping and error normalization. mudbase_delete_document and
mudbase_delete_file are marked destructive in their tool metadata so a client can prompt for
confirmation before calling them.
Sandbox tools (opt-in)
The nine sandbox tools run code in a cloud sandbox session for your project. They are registered
only when MUDBASE_ENABLE_SANDBOX_TOOLS is set to 1 or true:
{
"mcpServers": {
"mudbase": {
"command": "npx",
"args": ["mudbase-mcp-server"],
"env": {
"MUDBASE_API_KEY": "<YOUR_API_KEY>",
"MUDBASE_ENABLE_SANDBOX_TOOLS": "1"
}
}
}
}mudbase_create_sandbox_session: start a sandbox session (python, node, go, and more). Spends billed compute.mudbase_list_sandbox_sessions: list the running or starting sessions for a project.mudbase_get_sandbox_session: fetch the status and metadata of one session.mudbase_close_sandbox_session: terminate a session and free its machine.mudbase_exec_sandbox_command: run a command in a session and return its output. Spends billed compute.mudbase_write_sandbox_files: write files into a session.mudbase_read_sandbox_file: read a file from a session.mudbase_start_sandbox_service: start a long-running service in a session, optionally with a port. Spends billed compute.mudbase_expose_sandbox_port: expose a session port at a public preview URL. Spends billed compute.
Safety notes:
Sandbox sessions run code you send them and are billed to the project. Close a session with
mudbase_close_sandbox_sessionwhen you are done with it. Sessions also end on their own timeout.mudbase_expose_sandbox_portdefaults totoken-gated: the port needs a Bearer token (returned asportToken). Passaccessset topubliconly when anyone with the URL should be able to reach the port.Turn the sandbox tools on only for an API key and a client you trust. Anything the model runs in a session runs with that session's access, not your local machine's.
Upgrading from 0.2.0
Version 0.3.0 changes two defaults:
The nine sandbox tools are no longer registered by default. If you use them, set
MUDBASE_ENABLE_SANDBOX_TOOLSto1in the server's environment. The 14 data and storage tools are unchanged.mudbase_expose_sandbox_portnow defaults totoken-gated. A caller that relied on the old public default must passaccess: "public"explicitly.
How errors are reported
A failed API call (invalid API key, missing project, validation error, rate limit, and so on)
never crashes the server or throws an unhandled exception. It comes back to the MCP client as a
normal tool result with isError: true and a JSON body describing what went wrong, for example:
{
"error": "Mudbase rejected this API key. Check that MUDBASE_API_KEY is a valid, active key with access to this project.",
"status": 401,
"code": "unauthorized"
}Development
npm install
npm run build # compile TypeScript to dist/
npm run dev # run the server directly from source with tsx
npm test # run the unit test suite
npm run typecheck # tsc --noEmit
npm run lint # eslintLicense
MIT. Built by the Mudbase Team.
Available Tools
14 toolsmudbase_create_documentCreate a Mudbase documentA
Create a new document in a Mudbase collection. 'data' must match the collection's declared field schema (see mudbase_get_collection). Fires the collection's configured webhooks and triggers.
Inputs: data (required), projectId (required), collectionId (required).
mudbase_delete_documentDelete a Mudbase documentADestructive
Permanently delete a single document from a Mudbase collection. This cannot be undone.
Inputs: projectId (required), documentId (required), collectionId (required).
mudbase_delete_fileDelete a Mudbase fileADestructive
Permanently delete a file from a Mudbase storage bucket. This cannot be undone.
Inputs: fileId (required), bucketId (required), projectId (required).
mudbase_get_collectionGet a Mudbase collection's schemaA
Get the full field schema and permission settings for one collection in a Mudbase project.
Inputs: projectId (required), collectionId (required).
mudbase_get_documentGet a single Mudbase documentA
Fetch a single document by ID from a Mudbase collection.
Inputs: projectId (required), documentId (required), collectionId (required).
mudbase_get_fileGet Mudbase file metadataB
Get metadata (name, size, MIME type, visibility, timestamps) for a single stored file.
Inputs: fileId (required), bucketId (required), projectId (required).
mudbase_get_file_download_urlGet a signed download URL for a Mudbase fileA
Generate a time-limited signed URL to download a private or public file from Mudbase storage.
Inputs: fileId (required), bucketId (required), projectId (required), expiresIn.
mudbase_list_bucketsList Mudbase storage bucketsB
List the storage buckets configured in a Mudbase project.
Inputs: projectId (required), page, limit, search.
mudbase_list_collectionsList Mudbase collectionsA
List every collection (schema) defined in a Mudbase project, including each field's name and type. Call this before reading or writing documents to see what collections and fields actually exist.
Inputs: projectId (required).
mudbase_list_documentsList documents in a Mudbase collectionB
List documents in a Mudbase collection, with pagination, sorting, and an optional filter. 'filter' is a JSON-encoded object using Mudbase's structured query operators, e.g. '{"status":"active"}' or '{"age":{"$gte":18}}'.
Inputs: projectId (required), collectionId (required), page, sort, +2 more.
mudbase_list_filesList files in a Mudbase bucketA
List the files stored in one Mudbase storage bucket, with optional search and MIME type filter.
Inputs: bucketId (required), projectId (required), page, type, +2 more.
mudbase_search_documentsSearch across a Mudbase projectA
Full-text search across a Mudbase project's collections. Optionally scope to specific collections or fields.
Inputs: query (required), projectId (required), page, limit, +2 more.
mudbase_update_documentUpdate a Mudbase documentA
Partially update an existing document. Only the fields included in 'data' are changed; omitted fields are left as-is.
Inputs: data (required), projectId (required), documentId (required), collectionId (required).
mudbase_upload_fileUpload a file to Mudbase storageA
Upload a file to a Mudbase storage bucket. Provide the file content as a base64-encoded string. Best for small to moderate files (text, small images, JSON, documents) passed inline; not intended for very large binaries.
Inputs: bucketId (required), filename (required), projectId (required), contentBase64 (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource-action pairing: documents, collections, buckets, and files are cleanly separated. Even similar tools like list_documents and search_documents are distinguished by structured filtering versus full-text search.
All tools follow a consistent mudbase_<verb>_<noun> pattern in snake_case, making the API predictable. The only compound name, get_file_download_url, still follows the same get_<resource>_<aspect> convention.
14 tools is well within the ideal range and each tool covers a distinct operation across two coherent domains: document CRUD/search and file storage. No tool feels redundant or unnecessary.
Document CRUD, listing, filtering, and search are covered, along with file upload/list/get/delete and signed download URLs. Minor gaps exist around collection lifecycle management and file metadata updates, but agents can accomplish the core workflows without dead ends.
Related MCP Connectors
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
MCP server for interacting with the Supabase platform
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Use your Pronto feed, Spaces, Posts, Artifacts, and agents from any MCP client.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables interaction with REMUS Jet databases through the MCP protocol, supporting local stdio and remote HTTP/SSE transports for database operations and project management.20AGPL 3.0
- AlicenseAqualityBmaintenanceEnables MCP clients to safely read, write, edit, search, and optionally run commands within one or more named project workspaces, while maintaining a work journal and tracking changes.19MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP clients to manage PocketBase databases by creating collections, performing record CRUD with pagination and relation expansion, handling user authentication, and backing up data.18 npmISC
- FlicenseNot gradedqualityAmaintenanceEnables MCP-capable clients to securely read and manage Basecamp 3 projects via OAuth-authenticated API calls, with tools for projects, todos, messages, card tables, documents, uploads, comments, events, webhooks, and search.-