Skip to main content
Glama

list_adapters

View available database adapters to identify supported database types for establishing secure connections through the db-mcp server.

Instructions

List all registered database adapters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'list_adapters' MCP tool, including its inline handler function. The tool has no input parameters and returns a JSON list of all registered database adapters with their ID, type, name, version, and connection status.
    // List adapters tool // eslint-disable-next-line @typescript-eslint/no-deprecated this.server.tool( 'list_adapters', 'List all registered database adapters', {}, () => { const adapters = []; for (const [id, adapter] of this.adapters) { adapters.push({ id, type: adapter.type, name: adapter.name, version: adapter.version, connected: adapter.isConnected() }); } return { content: [{ type: 'text' as const, text: JSON.stringify(adapters, null, 2) }] }; } );

Other Tools

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/neverinfamous/db-mcp'

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