Notion MCP Server: Secure & Enterprise Ready
by piskunlab
Connect Claude Desktop and custom AI Agents to your Notion workspace via Model Context Protocol (MCP). Give your AI a "second brain": let it search, r...
Opens on Apify.com
About Notion MCP Server: Secure & Enterprise Ready
Connect Claude Desktop and custom AI Agents to your Notion workspace via Model Context Protocol (MCP). Give your AI a "second brain": let it search, read, and write notes securely. Features Enterprise-grade security, SSE transport, and easy setup.
What does this actor do?
Notion MCP Server: Secure & Enterprise Ready is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Notion MCP Server (Apify Actor) This Actor runs a remote MCP (Model Context Protocol) server for the Notion API on Apify. It exposes an SSE + HTTP message interface that MCP-compatible clients can use to list tools and call Notion operations. ## What you get - An always-on HTTP server inside your Actor run (via Apify Container URL). - MCP SSE transport: - GET /sse opens an SSE stream and returns a sessionId. - POST /message?sessionId=... sends JSON-RPC requests. - Responses are delivered back over SSE as event: message. ## Requirements - A Notion integration token. - A secret token used to protect your MCP endpoints. ## Input Configured via Apify Actor input (input_schema.json). - notionApiKey (secret) - Notion integration token. - secretToken (secret) - Protects /sse and /message. - notionApiVersion - Default: 2022-06-28. - port (optional) - Ignored on Apify Container URL. In Apify Cloud the server must listen on ACTOR_WEB_SERVER_PORT (usually 4321). ## How to connect (Container URL) After the run starts, open the run detail page and copy the Container URL, e.g. https://<run-id>.runs.apify.net ### 1) Open SSE and obtain sessionId Run this in terminal #1 (keep it open): bash curl -i -N \ -H "Authorization: Bearer <SECRET_TOKEN>" \ https://<run-id>.runs.apify.net/sse You should see: event: endpoint data: /message?sessionId=<SESSION_ID> ### 2) Send MCP JSON-RPC messages In terminal #2, send initialize: bash curl -i \ -H "Authorization: Bearer <SECRET_TOKEN>" \ -H "Content-Type: application/json" \ -X POST \ --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"0.0"}}}' \ "https://<run-id>.runs.apify.net/message?sessionId=<SESSION_ID>" Expected behavior: - HTTP returns 202 Accepted. - The actual response arrives in terminal #1 as: json {"jsonrpc":"2.0","id":1,"result":{...}} ## Endpoints - GET / - Returns 200 OK. - GET /health - Returns JSON health status and current session count. - GET /sse - Auth required. - POST /message?sessionId=... - Auth required. - sessionId must be taken from the active /sse connection. ## Security notes - Do not publish or log your secretToken. - Use Authorization: Bearer <token>. - If a token leaks, rotate it in Apify input and restart the run. ## Troubleshooting ### 504 from Container URL If you see 504 Gateway Time-out, the Actor is usually not listening on the expected web server port. On Apify, Container URL expects the server on ACTOR_WEB_SERVER_PORT (typically 4321). ### Session not found {"error":"Session not found"} means: - you posted to a different run URL than the one that created the session, or - the /sse connection closed and the session was cleaned up. Open /sse again and use the new sessionId. ## Local development bash npm ci npm run build apify run
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Notion MCP Server: Secure & Enterprise Ready now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- piskunlab
- Pricing
- Paid
- Total Runs
- 10
- Active Users
- 1
Related Actors
Fast Website Content Crawler
by 6sigmag
Domain Availability, Expiry, WHOIS, DNS, IP, ASN, 70+ TLD
by datascoutapi
🧾 YouTube Extractor (Transcripts + Metadata)
by dz_omar
Email Verifier by Million Verifier - $1/1k emails
by account56
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support