Skip to main content
Glama

MCP Notion Server

query_database

Retrieve structured data from Notion databases using advanced filtering, sorting, and pagination. Ideal for extracting specific information tailored to your needs.

Instructions

Query a database with filters and sorting

Input Schema

NameRequiredDescriptionDefault
database_idYesID of the database to query
filterNoFilter conditions
page_sizeNoNumber of results per page
sortsNoSorting parameters
start_cursorNoPagination cursor

Input Schema (JSON Schema)

{ "properties": { "database_id": { "description": "ID of the database to query", "type": "string" }, "filter": { "description": "Filter conditions", "type": "object" }, "page_size": { "description": "Number of results per page", "type": "number" }, "sorts": { "description": "Sorting parameters", "type": "array" }, "start_cursor": { "description": "Pagination cursor", "type": "string" } }, "required": [ "database_id" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Notion 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/gabornyergesX/mcp-notion-server'

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