createDatabase
Create a new CouchDB database
Create, read and query CouchDB databases and documents from the conversation, including Mango indexes on CouchDB 3.x.
LABSCO SUMMARY
Basic document CRUD works against any CouchDB, but indexes and Mango queries only appear on 3.x and newer — the server checks the version and enables them accordingly. Credentials travel inside the connection URL, so whatever that user can do to the cluster, the agent can do too.
A TypeScript server over a single CouchDB connection. It covers the database and document basics on every CouchDB version, and detects the server version on startup to decide whether the Mango query tools are available.
createDatabase, listDatabases, deleteDatabase_rev turns the call into an update instead of a create — createDocumentgetDocumentcreateMangoIndex, listMangoIndexes, deleteMangoIndexfindDocumentsA reachable CouchDB instance and COUCHDB_URL holding the connection string, credentials included; it defaults to http://localhost:5984 when unset. COUCHDB_VERSION tells the server which feature set to enable. Node.js 14 or higher. Runs from the built build/index.js, or installs into Claude Desktop through Smithery.
One command — npx -y github:robertoamoreno/couchdb-mcp-server
USE CASES
List the databases, then pull individual documents by id to see what the schema actually looks like before writing any query.
Create an index on the fields you filter by, then run a Mango query against it. On CouchDB older than 3.x these two tools are not registered at all.
Create the database, then write documents by id. Include _rev when you mean to update an existing one — the tool decides between create and update based on whether that field is present.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
createDatabaseCreate a new CouchDB database
createDocumentCreate a new document or update an existing document in a database
deleteDatabaseDelete a CouchDB database
getDocumentGet a document from a database
listDatabasesList all CouchDB databases
BEFORE YOU INSTALL
5 tools when we connected.
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"couchdb-mcp-server": {
"command": "npx",
"args": [
"-y",
"github:robertoamoreno/couchdb-mcp-server"
]
}
}
}npx -y github:robertoamoreno/couchdb-mcp-server