Skip to main content
Glama

Notion MCP Server

by gendosu

API-post-database-query

Query a Notion database by ID, filter properties, apply sort criteria, and paginate results using the Notion API. Retrieve specific page data efficiently with customizable filters and sorting options.

Instructions

Notion | Query a database

Input Schema

NameRequiredDescriptionDefault
archivedNo
database_idYesIdentifier for a Notion database.
filterNoWhen supplied, limits which pages are returned based on the [filter conditions](ref:post-database-query-filter).
filter_propertiesNoA list of page property value IDs associated with the database. Use this param to limit the response to a specific page property value or values for pages that meet the `filter` criteria.
in_trashNo
page_sizeNoThe number of items from the full list desired in the response. Maximum: 100
sortsNoWhen supplied, orders the results based on the provided [sort criteria](ref:post-database-query-sort).
start_cursorNoWhen supplied, returns a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.

Input Schema (JSON Schema)

{ "$defs": {}, "properties": { "archived": { "type": "boolean" }, "database_id": { "description": "Identifier for a Notion database.", "type": "string" }, "filter": { "additionalProperties": true, "description": "When supplied, limits which pages are returned based on the [filter conditions](ref:post-database-query-filter).", "type": "object" }, "filter_properties": { "description": "A list of page property value IDs associated with the database. Use this param to limit the response to a specific page property value or values for pages that meet the `filter` criteria.", "items": { "type": "string" }, "type": "array" }, "in_trash": { "type": "boolean" }, "page_size": { "default": 100, "description": "The number of items from the full list desired in the response. Maximum: 100", "type": "integer" }, "sorts": { "description": "When supplied, orders the results based on the provided [sort criteria](ref:post-database-query-sort).", "items": { "additionalProperties": true, "properties": { "direction": { "enum": [ "ascending", "descending" ], "type": "string" }, "property": { "type": "string" } }, "required": [ "property", "direction" ], "type": "object" }, "type": "array" }, "start_cursor": { "description": "When supplied, returns a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.", "type": "string" } }, "required": [ "database_id" ], "type": "object" }

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

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