NotionCAUTION
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server that provides seamless integration with Notion. This server enables Language Models to interact with your Notion workspace through standardized tools for searching, reading, creating, and updating pages and databases.
🌟 Key Features
Page Operations
- 🔍 Search through your Notion workspace
- 📝 Create new pages with rich markdown content
- 📖 Read page content with clean formatting
- 🔄 Update existing pages
- 💬 Add and retrieve comments
- 🧱 Block-level operations (update, delete)
Enhanced Markdown Support
- Multiple heading levels (H1-H3)
- Code blocks with language support
- Interactive todo items with checkbox states
- Blockquotes with multi-line support
- Horizontal dividers
- Images with captions
- Nested bullet points
Database Operations
- Create and manage databases
- Add and update database items
- Query with filters and sorting
- Support for various property types:
- Title, Rich text, Number
- Select, Multi-select
- Date, Checkbox
- And more!
🚀 Getting Started
Prerequisites
- Node.js (v16 or higher)
- Notion API key
- MCP-compatible client (e.g., Claude Desktop)
Installation
- Clone the repository:
git clone https://github.com/v-3/notion-server.git cd notion-server
- Install dependencies:
npm install
- Set up your environment:
# Create .env file echo "NOTION_API_KEY=your_notion_api_key_here" > .env # Or export directly export NOTION_API_KEY=your_notion_api_key_here
- Build the server:
npm run build
🔧 Configuration
Claude Desktop Setup
- Update your Claude Desktop configuration (
claude_desktop_config.json):
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["/absolute/path/to/notion-server/build/index.js"],
"env": {
"NOTION_API_KEY": "your_notion_api_key_here"
}
}
}
}- Restart Claude Des
05760c079819OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add notionmcp --env NOTION_API_KEY=${NOTION_API_KEY} -- npx -y [email protected]{
"mcpServers": {
"notionmcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"NOTION_API_KEY": "${NOTION_API_KEY}"
}
}
}
}Exposed tools (13)
5 read · 7 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_comment | write | Add a comment to a page |
create_database | write | Create a new database in a page |
create_page | write | Create a new page or database item. For database items, include |
delete_block | destructive | Delete a specific block from a page |
query_database | read | Query a database |
read_page | read | Read a regular page |
retrieve_comments | read | Get all comments from a page |
retrieve_database | read | Retrieve a database |
search_pages | read | Search through Notion pages |
update_block | write | Update a block |
update_database | write | Update a database |
update_database_item | write | Update a database item |
update_page | write | Update an existing Notion page |
Trust audit
CAUTIONgrade B · trust 89/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (4)
.DS_Store
delete_block
.DS_Store
@modelcontextprotocol/sdk, @notionhq/client, body-parser, dotenv, express, @types/node, typescript
Gates applied: no_behavioural_pass.
05760c079819full audit observations/trust-audit/mcp-server/v-3__notion-7.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 05760c079819 | CAUTION | B | 89 | first audit |
Questions
What tools does Notion expose?
13 in total: 5 read-only, 7 that write, and 1 that can delete or overwrite (delete_block). Every one is listed on this page with its risk.
Is Notion safe to connect to an agent?
With care. The audit graded it B (89/100) and found 4 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Notion need?
It reads NOTION_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Notion run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as notionmcp at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (05760c079819), read on 2026-10-07. The repository is watched and re-audited when it changes.