Notion MCP Server
Enables AI assistants to interact with Notion workspaces through the Notion API. Supports searching, reading, creating pages, and querying databases with filters and sorting capabilities.
README
Notion MCP Server
A Model Context Protocol (MCP) server that provides integration with the Notion API, allowing AI assistants to interact with Notion pages and databases.
Features
- Search for pages and databases in Notion
- Retrieve page information and content
- Create new pages
- Query databases with filters and sorting
- Full integration with Notion's API capabilities
Setup
1. Install dependencies
npm install
2. Configure Notion API
- Go to https://www.notion.so/my-integrations
- Click "New integration"
- Give it a name (e.g., "MCP Server")
- Select the workspace
- Copy the "Internal Integration Token"
3. Set up environment variables
cp .env.example .env
Edit .env and add your Notion API key:
NOTION_API_KEY=your_notion_integration_token_here
4. Share pages/databases with your integration
For the integration to access your Notion pages and databases, you need to share them:
- Go to the page or database you want to access
- Click "Share" in the top right
- Click "Invite" and select your integration
Development
# Run in development mode
npm run dev
# Build for production
npm run build
# Run production build
npm start
# Watch mode
npm run watch
Available Tools
search_notion
Search for pages and databases in Notion.
Parameters:
query(string): Search query
get_page
Get a Notion page by ID.
Parameters:
pageId(string): Page ID
get_page_content
Get the content/blocks of a Notion page.
Parameters:
pageId(string): Page ID
create_page
Create a new page in Notion.
Parameters:
title(string): Page titleparentId(string, optional): Parent page or database IDcontent(string, optional): Page content as markdown
query_database
Query a Notion database.
Parameters:
databaseId(string): Database IDfilter(object, optional): Filter objectsorts(array, optional): Sort array
Usage with Claude Desktop
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["/path/to/notion-mcp-server/dist/index.js"],
"env": {
"NOTION_API_KEY": "your_notion_integration_token_here"
}
}
}
}
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.