Managed MCP Server API

Tacnode provides managed MCP Server through https://mcp-server.tacnode.io/mcp, it provides read-only access to Tacnode databases, enables schema inspection and execute read-only queries.

Authentication

Bearer Token is required during the authentication. The token is generated from Nodegroup Overview->MCP Tokens.

Resources API

Resources List

Request: list all tables under public schema.

{
	method: "resources/list"
	params: {}
}

Response:

{
  "resources": [
    {
      "uri": "postgres://host:port/database/table_name/schema",
      "mimeType": "application/json",
      "name": "table_name"
    }
  ]
}

Resources Read

Request: get the schema for the specified table(including coulmns namesand types)

{
	method: "resources/read"
	params: {"uri": "resource_uri"}
}

Response:

{
  "contents": [
    {
      "uri": "requested_uri",
      "mimeType": "application/json",
      "text": "[{"column_name":"...","data_type":"..."}]"
    }
  ]
}

Tools API

Tools List

Request: get the available tools.

{
  "method": "tools/list",
  "params": {}
}

Response:

{
  "tools": [
    {
      "name": "query",
      "description": "Run a read-only SQL query",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sql": { "type": "string" }
        },
        "required": ["sql"]
      }
    }
  ]
}

Tools Call

Request: execute the read-only query and get the results.

  "method": "tools/call",
  "params": { "name": "query", "arguments": { "sql": "SELECT * FROM table" } }

Response:

{
  "content": [
    {
      "type": "text",
      "text": "[{\"column1\":\"value1\",\"column2\":\"value2\"}]"
    }
  ],
  "isError": false
}

On this page