Skip to main content
Glama

Notion MCP Server

by kimjungyeol

notion_query_database

Query Notion databases to retrieve filtered, sorted, or paginated results in JSON or Markdown format for efficient data access and readability.

Instructions

Query a database in Notion

Input Schema

NameRequiredDescriptionDefault
database_idYesThe ID of the database to query.It should be a 32-character string (excluding hyphens) formatted as 8-4-4-4-12 with hyphens (-).
filterNoFilter conditions
formatNoSpecify the response format. 'json' returns the original data structure, 'markdown' returns a more readable format. Use 'markdown' when the user only needs to read the page and isn't planning to write or modify it. Use 'json' when the user needs to read the page with the intention of writing to or modifying it.markdown
page_sizeNoNumber of results per page (max 100)
sortsNoSort conditions
start_cursorNoPagination cursor for next page of results

Input Schema (JSON Schema)

{ "properties": { "database_id": { "description": "The ID of the database to query.It should be a 32-character string (excluding hyphens) formatted as 8-4-4-4-12 with hyphens (-).", "type": "string" }, "filter": { "description": "Filter conditions", "type": "object" }, "format": { "default": "markdown", "description": "Specify the response format. 'json' returns the original data structure, 'markdown' returns a more readable format. Use 'markdown' when the user only needs to read the page and isn't planning to write or modify it. Use 'json' when the user needs to read the page with the intention of writing to or modifying it.", "enum": [ "json", "markdown" ], "type": "string" }, "page_size": { "description": "Number of results per page (max 100)", "type": "number" }, "sorts": { "description": "Sort conditions", "items": { "properties": { "direction": { "enum": [ "ascending", "descending" ], "type": "string" }, "property": { "type": "string" }, "timestamp": { "type": "string" } }, "required": [ "direction" ], "type": "object" }, "type": "array" }, "start_cursor": { "description": "Pagination cursor for next 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/kimjungyeol/mcp-notion-server'

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