Notion MCP Server
Connects Claude Desktop and other MCP clients directly to Notion with secure SSE support for CRUD operations. Designed for cloud deployment with bearer authentication, rate limiting, and security headers.
README
Notion MCP Server
Connect Claude Desktop (and other MCP clients) directly to Notion using a real MCP server with SSE support.
No flaky local scripts. No tokens in URLs. Run it securely in the cloud.
🚀 Quick Start (Recommended)
The easiest way to run this securely 24/7 is on Apify.
Connect your MCP client
-
Base URL (Apify Container URL):
https://<run-id>.runs.apify.net -
SSE endpoint:
GET /sse -
Client-to-server messages:
POST /message?sessionId=...
Authentication is done via:
- Authorization header:
Authorization: Bearer <SECRET_TOKEN>
✨ Features
- MCP Protocol with SSE
- Secure Bearer Authentication
- Notion API access (CRUD via OpenAPI tools)
- Rate-limiting & basic DDoS protection (
express-rate-limit) - Security headers (
helmet)
💻 Local Development (For Geeks)
Install
npm install
Build
npm run build
Run
npm start
Docker (optional)
If you use Docker locally:
docker build -t notion-mcp-server .
docker run -p 8080:8080 --env-file .env notion-mcp-server
⚙️ Configuration
This project is designed to read configuration from environment variables (and Apify Actor input).
Required ENV variables
NOTION_TOKEN- Your Notion integration token.
SECRET_TOKEN- Bearer token required to access
/sseand/message.
- Bearer token required to access
Optional (advanced):
NOTION_API_VERSION(default:2022-06-28)OPENAPI_MCP_HEADERS(JSON string of headers; overridesNOTION_TOKENwhen present)BASE_URL(override OpenAPI server base URL)
Claude Desktop configuration
Add (or merge) something like this into claude_desktop_config.json:
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/dist/start-apify.js"],
"env": {
"NOTION_TOKEN": "YOUR_NOTION_TOKEN",
"SECRET_TOKEN": "YOUR_SECRET_TOKEN"
}
}
}
}
On Apify, you typically configure secrets via Actor input / secrets and use the Container URL as the server endpoint.
Security Notes
- Never commit
.envfiles or Apifystorage/directories. - Use a strong
SECRET_TOKENand rotate it if it leaks.
Contributing
PRs are welcome!
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.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.
E2B
Using MCP to run code via e2b.