About database-query
database-query is a skill for querying Notion databases through the Notion MCP server. It interprets database names or IDs and requested filters or sorts, then presents a limited, readable summary of matching records.
Key features
- 01Find databases by name or ID
- 02Apply requested filters and sorts
- 03Limit result counts
- 04Present key properties in compact tables
- 05Summarize rich-text content
Use cases
- 01Finding records by status, owner, or due date
- 02Reviewing a filtered set of database rows
- 03Summarizing matching records for a decision
MCP support
Uses the Notion MCP server to query databases on the user's behalf, applying requested filters and sorts and returning readable results.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ makenotion/ cursor-notion-plugin --skill database-queryAfter installing, type/database-queryin Claude Code to confirm it loaded.
Details
From the project READMEQuery Notion Database
Use the Notion MCP server to query a database on the user's behalf.
Workflow
- Interpret the request to extract:
- Target database (by name or ID)
- Optional filter(s) or sort(s) the user describes.
- If multiple databases match the name, ask the user to choose the correct one.
- Perform a query that:
- Applies the requested filters (e.g. status = Active, owner = Alice, due date this week).
- Limits to a reasonable number of rows (e.g. 20-50) unless the user explicitly asks for more.
- Present the results in a compact table-like format with:
- Key properties (e.g. Name, Status, Owner, Due).
- A short summary if the database has rich text content.
- If no rows match, say so clearly and suggest alternative filters.
Important
Avoid dumping raw JSON. Focus on readability and decision-making value for the user.
Comments
Markdown supported