loading…
Search for a command to run...
loading…
Provides structured, SQL-style query access to Notion databases, allowing Claude to filter, sort, and update pages through the Notion REST API. It enables advan
Provides structured, SQL-style query access to Notion databases, allowing Claude to filter, sort, and update pages through the Notion REST API. It enables advanced property-based filtering and database schema discovery beyond the capabilities of standard connectors.
MCP server for structured Notion queries.
Claude's built-in Notion connector only does semantic search, returning at most 10 fuzzy results. It cannot filter by property values (status, date, module, type), sort results, or paginate through large databases. If you want Claude to answer "show me all overdue tasks where Status is In Progress", the default connector can't do it.
Wraps the Notion REST API and exposes four MCP tools:
@modelcontextprotocol/sdk) with SSE and Streamable HTTP transportsntn_)Open each Notion database you want Claude to query. Click ... > Connections > Connect to and select your integration.
git clone <this-repo>
cd notion-query-mcp
npm install
npx wrangler login
npx wrangler secret put NOTION_API_KEY
# Paste your ntn_XXXXX token when prompted
npx wrangler secret put MCP_AUTH_TOKEN
# Paste a strong random token (e.g. openssl rand -hex 32)
npm run deploy
This gives you a URL like https://notion-query-mcp.<your-subdomain>.workers.dev.
All requests require a bearer token. Set your MCP_AUTH_TOKEN as a Cloudflare secret (step 3), then configure your MCP client to send it.
Claude Desktop / claude.ai config:
{
"mcpServers": {
"notion-query": {
"url": "https://notion-query-mcp.your-subdomain.workers.dev/sse",
"headers": {
"Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
}
}
}
}
Claude Code config (~/.claude.json or project .mcp.json):
{
"mcpServers": {
"notion-query": {
"type": "sse",
"url": "https://notion-query-mcp.your-subdomain.workers.dev/sse",
"headers": {
"Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
}
}
}
}
Replace YOUR_MCP_AUTH_TOKEN with the same token you set via wrangler secret put.
Once connected, try in a Claude conversation:
npm run dev # local dev server
npm run type-check # TypeScript validation
npm run deploy # deploy to Cloudflare
npx wrangler secret put MCP_AUTH_TOKEN)https://claude.aiFree. Cloudflare Workers free tier (100k req/day) + Notion API (free for internal integrations).
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"notion-query-mcp-server": {
"command": "npx",
"args": []
}
}
}