Skip to main content
Glama

Notion MCP Server

query-database

Query and retrieve structured data from Notion databases using custom filters, sorting, and pagination, enabling integration with AI models through the Notion MCP Server.

Input Schema

NameRequiredDescriptionDefault
database_idYesThe ID of the database to query
filterNoJSON string of filter criteria
page_sizeNoNumber of results to return (max 100)
sortsNoJSON string of sort criteria
start_cursorNoPagination cursor

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "database_id": { "description": "The ID of the database to query", "type": "string" }, "filter": { "description": "JSON string of filter criteria", "type": "string" }, "page_size": { "description": "Number of results to return (max 100)", "maximum": 100, "minimum": 1, "type": "number" }, "sorts": { "description": "JSON string of sort criteria", "type": "string" }, "start_cursor": { "description": "Pagination cursor", "type": "string" } }, "required": [ "database_id" ], "type": "object" }

You must be authenticated.

Other Tools from Notion MCP Server

Related Tools

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/ramidecodes/mcp-server-notion'

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