by v-3
Provides seamless integration with Notion, enabling language models to search, read, create, and update pages and databases through standardized tools.
A server that exposes Notion workspace functionality (page search, read/write, comments, block operations, database creation and queries) as Model Context Protocol tools, allowing AI agents or other MCP‑compatible clients to manipulate Notion content programmatically.
NOTION_API_KEY
environment variable with a Notion integration token.npm run build
).npx notion-server
).index.js
and supply the same API key.search
, read_page
, create_page
, update_page
, create_database
, query_database
, etc. – from your AI or script.Q: What Node version is required? A: Node.js v16 or higher.
Q: How do I obtain a Notion API key? A: Create an integration at https://www.notion.so/my-integrations, grant it the needed permissions, and copy the generated secret token.
Q: Do I need to share every page with the integration? A: Yes, each page or database you want the server to access must be connected to the integration via the Notion UI ("…" → "Connections").
Q: Can I run the server without building it first?
A: For quick testing you can execute npx notion-server
which will install and run the package directly.
Q: Is there support for other MCP clients besides Claude Desktop? A: Any client that follows the MCP specification can interact with the server; only the configuration JSON needs to reference the server command and environment variables.
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.
git clone https://github.com/v-3/notion-server.git
cd notion-server
npm install
# 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
npm run build
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"
}
}
}
}
// Search pages
{
query: string // Search query
}
// Read page
{
pageId: string // ID of the page to read
}
// Create page
{
title?: string, // Page title
content?: string, // Page content in markdown
parentPageId: string // Parent page ID
properties?: object // For database items
}
// Update page
{
pageId: string, // Page ID to update
content: string, // New content
type?: string // Content type
}
// Create database
{
parentPageId: string,
title: string,
properties: object
}
// Query database
{
databaseId: string,
filter?: object,
sort?: object
}
const result = await notion.create_page({
parentPageId: "page_id",
title: "My Page",
content: "# Welcome\nThis is a test page."
});
const result = await notion.query_database({
databaseId: "db_id",
filter: {
property: "Status",
select: {
equals: "In Progress"
}
}
});
Contributions are welcome! Please:
This project is licensed under the MIT License - see the LICENSE file for details.
This project has been significantly improved by sweir1/notion-server, who has made following updates:
To use sweir1's version, you can clone their repository:
git clone https://github.com/sweir1/notion-server.git
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "notion": { "command": "npx", "args": [ "-y", "notion-server" ], "env": { "NOTION_API_KEY": "<YOUR_API_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.