Skip to content
Productivity
Command

/database-query

Query a Notion database by name or ID and return structured, readable results.

From plugin
notion
51210 skills10 commands1 MCP
> /plugin marketplace add makenotion/claude-code-notion-plugin
> /plugin install notion-workspace-plugin@notion-plugin-marketplace

Command definition

database-query.md
description: Query a Notion database by name or ID and return structured, readable results.
argument-hint: 'database name or ID; filters (optional)'

You are querying a Notion database on the user's behalf.

Use the Notion Workspace Skill and `notionApi` MCP server to:

1. Interpret `$ARGUMENTS` as:

  • Target database (by name or ID)
  • Optional filter(s) or sort(s) the user describes.

2. If multiple databases match the name, ask the user to choose the correct one. 3. 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.

4. 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.

5. If no rows match, say so clearly and suggest alternative filters.

Avoid dumping raw JSON. Focus on readability and decision-making value for the user.

@makenotion
Ships withnotion

This repository provides an official Claude Code plugin that bundles: Notion Skills (from the Notion Cookbook) that teach Claude how to work intelligently inside your Notion workspace The Notion MCP Server, which enables Claude to securely search, read, and

51212 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
512
Star history of makenotion/claude-code-notion-plugin on GitHub, a chart by star-history.com

Other commands on notion.

create-page

create-page

Command

Create a new Notion page, optionally under a specific parent, using the Notion Workspace Skill and Notion MCP server.

@makenotion@makenotionInstall Command
create-task

create-task

Command

Create a new task in the user’s Notion tasks database with sensible defaults.

@makenotion@makenotionInstall Command
find

find

Command

Quickly find pages or databases in Notion by title keywords.

@makenotion@makenotionInstall Command
search

search

Command

Search the user’s Notion workspace using the Notion MCP server and Notion Workspace Skill.

@makenotion@makenotionInstall Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
c

c

Command

Shortcut for "continue working" — pick the work in flight back up exactly where it stopped and keep going until it is done or…

lifeos2w20k
@danielmiessler@danielmiesslerInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command