MCP.so
登录

Notion Prompts MCP Server

@BaoxingZhang

关于 Notion Prompts MCP Server

暂无概览

基本信息

分类

记忆与知识

运行时

node

传输方式

stdio

发布者

BaoxingZhang

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "notion-prompts": {
      "command": "node",
      "args": [
        "build/index.js"
      ],
      "env": {
        "NOTION_API_KEY": "",
        "NOTION_DATABASE_ID": ""
      }
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Notion Prompts MCP Server?

Notion Prompts MCP Server is a server built on the Model Context Protocol (MCP) standard that provides access to prompts stored in a Notion database. It is intended for developers and users who want to manage, retrieve, combine, and process prompt templates from Notion through MCP-compatible clients.

How to use Notion Prompts MCP Server?

Clone the repository, install dependencies (npm install), build the project (npm run build), and configure the server with environment variables (NOTION_API_KEY, NOTION_DATABASE_ID) or command-line arguments. Start with npm start or provide the server JSON for an MCP client. Use the provided MCP tools like list_prompts, get_prompt_by_name, compose_prompt, and search_prompts to interact with the prompts.

Key features of Notion Prompts MCP Server

  • Lists all available prompts as MCP resources
  • Reads individual prompts by ID or name
  • Combines user input with prompt templates using variables
  • Supports category grouping and querying
  • Enables searching across name, description, and content
  • Includes built-in caching for performance
  • Configurable via environment variables or command line
  • Offers multiple prompt handling modes (return_only, process_locally, call_external_api)

Use cases of Notion Prompts MCP Server

  • Retrieve a specific prompt by name for a translation task
  • Compose a prompt template with user input for code generation
  • Process all prompts of a category (e.g., "七把武器") to generate multiple outputs
  • Refresh the prompt cache after updating the Notion database
  • Search across prompts to find relevant templates quickly

FAQ from Notion Prompts MCP Server

What dependencies or runtime are required?

Node.js and npm are required. You also need a Notion API key and a Notion database ID set up with specific properties (Name, Content, Description, Category). The database must be shared with your Notion integration.

Where does the prompt data live?

All prompt data is stored in a Notion database that you own. The server reads from that database via the Notion API. No data is stored locally beyond an optional cache.

What transport or authentication is used?

The server uses the standard MCP protocol (stdio transport by default, as shown in the server JSON example). Authentication to Notion is done via an internal integration token (ntn_xxx).

What prompt handling modes are available?

Three modes are configurable via PROMPT_HANDLING_MODE: return_only (returns plain composed text), process_locally (instructs the client to use its LLM), and call_external_api (server calls an external API, requires extra configuration).

How does caching work?

The server has a built-in cache with a configurable expiry time (default 5 minutes, set via CACHE_EXPIRY_TIME). You can manually refresh the cache using the refresh_prompts tool.

评论

记忆与知识 分类下的更多 MCP 服务器