notion

GitHub

通过 Notion 官方 MCP 服务器搜索、读取、创建和更新页面及数据库。支持动态发现工具,处理异步调用及认证流程,解决命名冲突问题。

packages/coding-agent/skills/notion/SKILL.md PrimeIntellect-ai/prime-agent

Trigger Scenarios

需要查询 Notion 内容 需要操作 Notion 数据

Install

npx skills add PrimeIntellect-ai/prime-agent --skill notion -g -y
More Options

Non-standard path

npx skills add https://github.com/PrimeIntellect-ai/prime-agent/tree/main/packages/coding-agent/skills/notion -g -y

Use without installing

npx skills use PrimeIntellect-ai/prime-agent@notion

指定 Agent (Claude Code)

npx skills add PrimeIntellect-ai/prime-agent --skill notion -a claude-code -g -y

安装 repo 全部 skill

npx skills add PrimeIntellect-ai/prime-agent --all -g -y

预览 repo 内 skill

npx skills add PrimeIntellect-ai/prime-agent --list

SKILL.md

Frontmatter
{
    "name": "notion",
    "description": "Search Notion and read\/create\/update pages and databases via Notion's official hosted MCP server. Tools are auto-discovered from the server at runtime."
}

Notion

Talk to Notion through its official hosted MCP server from the Python kernel.

Setup

Connect via /loginServices tab → Notion (OAuth in the browser). /mcp login notion does the same. Once connected, this skill is enabled automatically. If a call raises NotEnabled, the user isn't logged in — walk them through /login; don't ask them to set environment variables.

Usage

The tool set is defined by the server, not by this skill, so discover before you call — don't assume tool names or argument names:

Notion's tools are named with hyphens (e.g. notion-search, notion-fetch), which are not valid Python identifiers — so call them via call_tool:

import notion

# 1. Discover available tools (returns names + schemas)
for tool in await notion.list_tools():
    print(tool["name"], "-", tool["description"])

# 2. Call by exact name; the second arg matches the tool's input schema
result = await notion.call_tool("notion-search", {"query": "roadmap"})
print(result)

Tools whose names are valid identifiers can also be called as await notion.<tool>(**args), and help(notion.<tool>) shows their schema once list_tools() has run.

Notes:

  • Every call is async — always await.
  • Results are already-parsed Python (a dict for structured output, otherwise a string). No need to json.loads them.
  • Run list_tools() before relying on help() or assuming a tool exists — the server's schema is the source of truth for names and arguments.
  • The kernel import name is notion. On a custom PRIME_AGENT_KERNEL_PYTHON that already has the unrelated PyPI notion client installed, import notion may resolve to that instead; use the default managed kernel venv to avoid the clash.

Version History

  • bc0fa76 Current 2026-08-27 09:01

Same Skill Collection

packages/coding-agent/skills/agent-message/SKILL.md
packages/coding-agent/skills/agent-observe/SKILL.md
packages/coding-agent/skills/attach-image/SKILL.md
packages/coding-agent/skills/compact/SKILL.md
packages/coding-agent/skills/edit/SKILL.md
packages/coding-agent/skills/goal/SKILL.md
packages/coding-agent/skills/linear/SKILL.md
packages/coding-agent/skills/prime-intellect/SKILL.md
packages/coding-agent/skills/refine/SKILL.md
packages/coding-agent/skills/rlm-heartbeat/SKILL.md
packages/coding-agent/skills/skill-creator/SKILL.md
packages/coding-agent/skills/websearch/SKILL.md
packages/coding-agent/examples/extensions/dynamic-resources/SKILL.md

Metadata

Files
0
Version
bc0fa76
Hash
a7608287
Indexed
2026-08-27 09:01

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 20:16
浙ICP备14020137号-1 $Map of visitor$