Notion DB MCP Helper
Provides tools for querying and updating Notion database rows by exact property filters, ensuring safe single-row selection and updates without relying on semantic search.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Notion DB MCP Helperupdate task No 38 status to Done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Notion DB MCP Helper
Personal stdio MCP server and CLI helper for precise Notion data source queries/updates. It resolves rows by exact property filters and never relies on semantic search for mutation targets.
This project is optimized for local development and personal use:
Codex or Claude Code starts the MCP server locally through stdio.
The server reads local Notion auth from env vars or official
ntnfile-based auth.Database/source aliases live on the client machine.
npxcan run the server from GitHub without cloning the repo.
Why
Common Notion workflows like “update row 38” can become unreliable if an agent first uses semantic search to find a page. This helper does the safer flow:
Query a specific Notion
data_source_idwith an exact property filter.Require exactly one matching page.
Block not-found or duplicate matches.
Update the exact
page_idreturned by the query.
Related MCP server: Notion MCP Server
Quick Start: Codex
codex mcp add notion_db -- \
npx --yes --package github:trisetiohidayat/notion-mcp \
notion-mcp serveAuthenticate Notion locally before starting Codex:
ntn loginor:
export NOTION_API_TOKEN='<notion-token>'
codexQuick Start: Claude Code
claude mcp add notion_db -- \
npx --yes --package github:trisetiohidayat/notion-mcp \
notion-mcp serveAuthenticate Notion locally before starting Claude Code:
ntn loginor:
export NOTION_API_TOKEN='<notion-token>'
claudeQuick Links
MCP client installation:
docs/client.mdAI agent client installer guide:
docs/ai-install-client.mdLocal configuration guide:
docs/configuration.mdNotion API coverage:
docs/api-coverage.mdLocal development/server guide:
docs/server.md
Tools
Source Metadata Tools
Use these when you configure named Notion sources in local config.json.
notion_api_requestnotion_api_paginatenotion_file_upload_sendnotion_source_listnotion_source_schemanotion_source_update_schemanotion_source_add_propertynotion_source_rename_propertynotion_source_remove_propertynotion_source_get_by_keynotion_source_querynotion_source_tablenotion_source_countnotion_source_group_countnotion_source_query_by_propertynotion_source_count_by_propertynotion_source_update_by_keynotion_source_update_status_by_key
Generic Data Source Tools
Use these for raw data_source_id or simple aliases.
notion_db_schemanotion_db_update_schemanotion_db_add_propertynotion_db_rename_propertynotion_db_remove_propertynotion_db_querynotion_db_tablenotion_db_countnotion_db_group_countnotion_db_query_by_propertynotion_db_count_by_propertynotion_db_get_by_propertynotion_db_update_pagenotion_db_update_by_property
For agent-friendly reads, prefer the table/count tools over raw notion_db_query.
They convert Notion property objects into simple JSON values, so questions like
“list all No values where Status is QC” or “count rows by Status” do not require
local scripts.
Schema tools include select/status/multi-select option names so agents can
choose valid update and filter values without guessing.
Example:
{
"source": "task_list",
"property_name": "Status",
"value": "QC",
"properties": ["No", "Task", "Status"],
"max_results": 50
}Schema updates are supported through MCP. To add a Notion ID/Unique ID property without a prefix:
{
"source": "task_list",
"name": "No",
"type": "unique_id"
}Use notion_source_update_schema or notion_db_update_schema when you need to
pass a raw Notion schema patch for advanced property types.
Local Config
Create a client-side config file when you want aliases such as task_list:
mkdir -p ~/.config/notion-db-mcp
cat > ~/.config/notion-db-mcp/config.json <<'JSON'
{
"data_sources": {
"task_list": {
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"name": "Task List",
"key_property": "No",
"title_property": "Task",
"status_property": "Status"
}
}
}
JSONBecause the MCP server runs locally in stdio mode, this file stays on the client machine.
For shorter config commands, install the CLI globally from GitHub:
npm install -g github:trisetiohidayat/notion-mcpThen use:
notion-mcp config list
notion-mcp config discover
notion-mcp config add task_list '<notion-database-url-or-data-source-id>' --key No --status StatusLocal UI
For visual mapping management, start the local config UI:
notion-mcp uiBy default it listens only on http://127.0.0.1:3099. Override the bind address only when you know why:
NOTION_MCP_UI_HOST=127.0.0.1 NOTION_MCP_UI_PORT=3099 notion-mcp uiThe UI manages the same client-side config file as notion-mcp config .... It can list mappings, discover accessible Notion data sources, add mappings, refresh source metadata, and remove mappings with confirmation. It does not display Notion tokens.
You can also manage this file with the built-in CLI:
npx --yes --package github:trisetiohidayat/notion-mcp notion-mcp config list
npx --yes --package github:trisetiohidayat/notion-mcp notion-mcp config discover
npx --yes --package github:trisetiohidayat/notion-mcp notion-mcp config add task_list '<notion-database-url-or-data-source-id>' --key No --status Status
npx --yes --package github:trisetiohidayat/notion-mcp notion-mcp config refresh task_list
npx --yes --package github:trisetiohidayat/notion-mcp notion-mcp config remove task_list --yesAuth Model
The helper reads Notion bearer tokens in this order:
NOTION_TOKENNOTION_API_TOKENNOTION_API_KEYNOTION_ACCESS_TOKENOfficial
ntnfile-based auth, when available
If ntn login succeeds but the MCP tool returns Missing Notion token, set NOTION_API_TOKEN as a fallback.
CLI Examples
npm install
cp config.example.json config.json
export NOTION_API_TOKEN='<your-notion-token>'
./bin/db.js schema example_tasks
./bin/db.js get example_tasks No 38
./bin/db.js update example_tasks No 38 Status Done
./bin/db.js update-props example_tasks No 38 Summary="Done: verified"
./bin/notion-mcp.js config listSafety Behavior
No matching row: returns a clear not-found error.
Multiple matching rows: returns a duplicate-match error and blocks updates.
Unknown property: returns a schema error.
Invalid
select/statusoption: validates against schema when options are available.
Development
npm install
npm run checkLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/trisetiohidayat/notion-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server