io.github.n24q02m/better-notion-mcp
Markdown-first MCP server for Notion API with 9 composite tools and 39+ actions.
★ 18MITdevtools
Install
Config snippet generator goes here (5 client tabs)
README
# Better Notion MCP
mcp-name: io.github.n24q02m/better-notion-mcp
**Markdown-first Notion API server for AI agents -- 9 composite tools replacing 28+ endpoint calls**
<!-- Badge Row 1: Status -->
[](https://github.com/n24q02m/better-notion-mcp/actions/workflows/ci.yml)
[](https://codecov.io/gh/n24q02m/better-notion-mcp)
[](https://www.npmjs.com/package/@n24q02m/better-notion-mcp)
[](https://hub.docker.com/r/n24q02m/better-notion-mcp)
[](LICENSE)
<!-- Badge Row 2: Tech -->
[](#)
[](#)
[](#)
[](https://github.com/python-semantic-release/python-semantic-release)
[](https://developer.mend.io/)
<a href="https://glama.ai/mcp/servers/n24q02m/better-notion-mcp">
<img width="380" height="200" src="https://glama.ai/mcp/servers/n24q02m/better-notion-mcp/badge" alt="Better Notion MCP server" />
</a>
## Features
- **Markdown in, Markdown out** -- human-readable content instead of raw JSON blocks
- **9 composite tools** with 39 actions -- one call instead of chaining 2+ atomic endpoints
- **Auto-pagination and bulk operations** -- no manual cursor handling or looping
- **Tiered token optimization** -- ~77% reduction via compressed descriptions + on-demand `help` tool
- **Dual transport** -- local stdio (token) or remote HTTP (OAuth 2.1, no token needed)
## Quick Start
### Claude Code Plugin (Recommended)
Via marketplace (includes skills: /organize-database, /bulk-update):
```bash
/plugin marketplace add n24q02m/claude-plugins
/plugin install better-notion-mcp@claude-plugins
```
Or install this plugin only:
```bash
/plugin marketplace add n24q02m/better-notion-mcp
/plugin install better-notion-mcp
```
Plugin uses remote OAuth — no `NOTION_TOKEN` needed. Browser opens for Notion authorization on first use.
### MCP Server
#### Option 1: Remote (OAuth) -- No token needed
Connect directly via URL with OAuth authentication. Your MCP client handles the OAuth flow automatically.
```jsonc
{
"mcpServers": {
"better-notion": {
"type": "http",
"url": "https://better-notion-mcp.n24q02m.com/mcp"
}
}
}
```
#### Option 2: npx
Get your token: <https://www.notion.so/my-integrations> -> Create integration -> Copy token -> Share pages
Set `NOTION_TOKEN` in `~/.claude/settings.local.json` or your shell profile:
```bash
export NOTION_TOKEN="ntn_..."
```
Then add to your MCP client config:
```jsonc
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": ["-y", "@n24q02m/better-notion-mcp@latest"]
}
}
}
```
Other runners: `bun x`, `pnpm dlx`, `yarn dlx` also work.
<details>
<summary>Other MCP clients (Cursor, Codex, Gemini CLI)</summary>
```jsonc
// Cursor (~/.cursor/mcp.json), Windsurf, Cline, Amp, OpenCode
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": ["-y", "@n24q02m/better-notion-mcp@latest"]
}
}
}
```
```toml
# Codex (~/.codex/config.toml)
[mcp_servers.better-notion]
command = "npx"
args = ["-y", "@n24q02m/better-notion-mcp@latest"]
```
</details>
#### Option 3: Docker
```jsonc
{
"mcpServers": {
"better-notion": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "NOTION_TOKEN",
"n24q02m/better-notion-mcp:latest"
]
}
}
}
```
### Self-Hosting (Remote Mode)
You can self-host the remote server with your own Notion OAuth app.
**Prerequisites:**
1. Create a **Public Integration** at <https://www.notion.so/my-integrations>
2. Set the redirect URI to `https://your-domain.com/callback`
3. Note your `client_id` and `client_secret`
```bash
docker run -p 8080:8080 \
-e TRANSPORT_MODE=http \
-e PUBLIC_URL=https://your-domain.com \
-e NOTION_OAUTH_CLIENT_ID=your-client-id \
-e NOTION_OAUTH_CLIENT_SECRET=your-client-secret \
-e DCR_SERVER_SECRET=$(openssl rand -hex 32) \
n24q02m/better-notion-mcp:latest
```
## Tools
| Tool | Actions | Description |
|:-----|:--------|:------------|
| `pages` | `create`, `get`, `get_property`, `update`, `move`, `archive`, `restore`, `duplicate` | Create, read, update, and organize pages |
| `da