Notion CLI

v1.0.0Business Applicationsstable

CLI for Notion using the Model Context Protocol (MCP)

notion-climcpai-integration
Share:
32
Stars
0
Downloads
0
Weekly
0/5

What is Notion CLI?

Notion CLI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cli for notion using the model context protocol (mcp)

CLI for Notion using the Model Context Protocol (MCP)

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • CLI for Notion using the Model Context Protocol (MCP)

Use Cases

Interact with Notion databases through Model Context Protocol interface.
Manage Notion content via command-line integration with AI assistants.
lox

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 12, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx notion-cli

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Notion CLI

notion-cli is a Go-based MCP server and command-line tool that exposes Notion's workspace capabilities — pages, databases, search, and comments — to AI assistants through the Model Context Protocol via Notion's official remote MCP server. It supports both OAuth-based interactive login and headless token-based authentication, making it suitable for both local developer use and CI/CD pipelines. Developers and knowledge workers use it to query Notion databases, create and edit pages, and search across their entire workspace from within an AI assistant.

Prerequisites

  • Go 1.20+ installed (for building from source), or a prebuilt binary
  • A Notion account with a workspace you want to connect
  • A Notion API integration token (from https://www.notion.so/my-integrations) or OAuth credentials for interactive login
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install notion-cli

Install the binary using the Go toolchain. This fetches and builds the latest version from the repository.

go install github.com/lox/notion-cli@latest
2

Authenticate with Notion

For interactive use, run the auth login command to complete the OAuth flow in your browser. For headless/CI use, set the NOTION_ACCESS_TOKEN environment variable instead.

notion-cli auth login
# Or for headless / CI:
export NOTION_ACCESS_TOKEN=secret_your_token_here
3

Verify the connection and list available tools

Confirm that notion-cli can reach your workspace and list the MCP tools it exposes.

notion-cli tools
4

Add the server to your MCP client configuration

Open your claude_desktop_config.json and add notion-cli as an MCP server. Use NOTION_ACCESS_TOKEN for non-interactive environments.

{
  "mcpServers": {
    "notion": {
      "command": "notion-cli",
      "args": ["mcp"],
      "env": {
        "NOTION_ACCESS_TOKEN": "secret_your_token_here"
      }
    }
  }
}
5

Restart your MCP client and test a query

Restart Claude Desktop and ask it to search your Notion workspace or list a database to confirm everything is working.

Notion CLI Examples

Client configuration

Claude Desktop configuration for notion-cli using a Notion API access token.

{
  "mcpServers": {
    "notion": {
      "command": "notion-cli",
      "args": ["mcp"],
      "env": {
        "NOTION_ACCESS_TOKEN": "secret_your_token_here"
      }
    }
  }
}

Prompts to try

Example prompts once notion-cli is connected to your MCP client.

- "Search my Notion workspace for pages about Q3 roadmap planning"
- "List all entries in my Tasks database where Status is 'In Progress'"
- "Create a new page titled 'Meeting Notes 2026-06-15' under the Engineering section"
- "Add a comment to the page 'Architecture Decision Record #12'"
- "Create a new database entry in the Project Tracker with Title 'API Refactor' and Status 'Todo'"

Troubleshooting Notion CLI

Authentication fails with 'unauthorized' even though the token looks correct

Ensure the Notion integration has been connected to the specific pages or databases you're trying to access. Go to each Notion page, click Share, and add your integration. Tokens are scoped to pages the integration has been explicitly granted access to.

'notion-cli: command not found' after go install

Make sure your Go bin directory is on your PATH. Add 'export PATH=$PATH:$(go env GOPATH)/bin' to your shell profile and restart your terminal.

Frequently Asked Questions about Notion CLI

What is Notion CLI?

Notion CLI is a Model Context Protocol (MCP) server that cli for notion using the model context protocol (mcp) It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Notion CLI?

Follow the installation instructions on the Notion CLI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Notion CLI?

Notion CLI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Notion CLI free to use?

Yes, Notion CLI is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Notion CLI Alternatives — Similar Business Applications Servers

Looking for alternatives to Notion CLI? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "notion-cli": { "command": "npx", "args": ["-y", "notion-cli"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Notion CLI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides