notion-mcp-server
by miriamtoca-ui
Overview
This server acts as a Model Context Protocol (MCP) endpoint, enabling agents to interact with Notion for document management, including creating, retrieving, and updating entries, and provides a direct `/ingest` endpoint for data entry.
Installation
node server-http.jsEnvironment Variables
- NOTION_TOKEN
- NOTION_DATABASE_ID
- PORT
Security Notes
No 'eval' or obfuscation was found. Secrets (NOTION_TOKEN) are intended to be loaded from environment variables. However, a critical flaw exists in `tools.js`: `NOTION_DATABASE_ID` has a hardcoded default value ('2b704d5815c48030bf12f039d1a06893') which will be used if the environment variable is not explicitly set. Although `server-http.js` logs a warning, the server will proceed to operate on this potentially unintended or public database. This poses a significant risk of data exposure or accidental writes to the wrong database. The `/mcp/call_tool` endpoint dynamically executes handlers, relying on input schema validation and Notion's API to prevent misuse, but still represents a broad attack surface if tool arguments can be crafted maliciously. The `/ingest` endpoint also accepts arbitrary JSON for Notion page creation.
Similar Servers
RedNote-MCP
Access and interact with Xiaohongshu (RedNote) content through Model Context Protocol (MCP) by automating browser interactions.
typingmind-mcp
A server for managing and integrating Model Context Protocol (MCP) servers with TypingMind, enabling custom AI model connections.
better-notion-mcp
Provides a Markdown-first MCP server for Notion, optimizing Notion API interactions for AI agents by consolidating endpoints into composite actions and reducing LLM token overhead for tool descriptions.
mcp-server-nodejs-api-docs
Provides up-to-date Node.js API documentation and release schedule information as a service via the Model Context Protocol.