Notion MCP Server
Enables interaction with Notion workspaces, providing capabilities to search pages, retrieve page content, query databases, and create new pages through the Notion API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Notion MCP Server
A server that connects to the Notion API and exposes functionality through Claude's Machine Context Protocol (MCP).
Features
Search Notion pages by title or content
Retrieve page details and content
Query Notion databases
Create new pages in Notion
Related MCP server: Notion MCP Server
Setup
Clone this repository:
git clone https://github.com/yourusername/notion-mcp-server.git
cd notion-mcp-serverInstall dependencies:
npm installCreate a
.envfile in the root directory with the following content:
NOTION_API_KEY=your_notion_api_key_here
PORT=3000
# Optional: if you want to query a specific database by default
NOTION_DATABASE_ID=your_notion_database_id_hereGet your Notion API key:
Create a new integration
Copy the "Internal Integration Token"
Add this token as your
NOTION_API_KEYin the.envfile
Connect your Notion integration to your workspace:
Go to a page or database in your Notion workspace
Click the "..." menu in the top right
Select "Add connections"
Find and add your integration
Running the Server
Start the server in development mode:
npm run devOr in production mode:
npm startThe server will run on the port specified in your .env file (default: 3000).
API Endpoints
Regular HTTP Endpoints
POST /api/notion/search
Search for pages in Notion
Body:
{ "query": "search term" }
POST /api/notion/page
Get a page by ID
Body:
{ "page_id": "page-id-here" }
POST /api/notion/database/query
Query a database
Body:
{ "database_id": "database-id-here", "filter": {}, "sorts": [] }
POST /api/notion/page/create
Create a new page
Body:
{ "parent": {}, "properties": {}, "children": [] }
MCP Integration
The server exposes an MCP manifest at /mcp/manifest.json which describes the available functions.
To invoke an MCP function, send a POST request to /api/notion/mcp/invoke with the following structure:
{
"function_name": "search_pages",
"parameters": {
"query": "search term"
}
}Available MCP Functions
search_pages - Search Notion pages by title or content
get_page - Get a Notion page by ID
query_database - Query a Notion database
create_page - Create a new page in Notion
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Official Fibery MCP server: query and update your workspace from any AI client via OAuth.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.104,674 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.111MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.1733 npm10Apache 2.0
- AlicenseBqualityDmaintenanceA Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.12011MIT