Skip to main content

mcp-server-notion

Notion과 연동되는 Model Context Protocol(MCP) 서버 툴입니다. 이 서버는 외부 시스템 또는 LLM 기반 에이전트가 Notion 데이터베이스에 자동으로 내용을 추가하거나, 다양한 노션 자동화 작업을 수행할 수 있도록 지원합니다.

주요 기능

  • Notion 데이터베이스에 자동으로 콘텐츠 생성
  • MCP 표준 프로토콜 기반의 툴 등록 및 호출
  • Python 기반의 간단한 확장성

설치 방법

  1. 패키지 설치 (PyPI 배포 후)
pip install mcp-server-notion
  1. 의존성 설치 (개발 환경)
pip install -r requirements.txt

실행 방법

uvx 또는 python -m 으로 실행

uvx mcp-server-notion
# 또는
python -m mcp_server_notion

MCP 서버 등록 예시 (mcp.json)

{
  "mcpServers": {
    "notion": {
      "command": "uvx",
      "args": ["mcp-server-notion"]
    }
  }
}

사용 예시

  • 노션 API 토큰과 parent_id(페이지/데이터베이스 ID)를 준비합니다.
  • MCP 툴 프롬프트 예시:
notion_create_page 툴을 사용해서 노션에 페이지를 만들어줘.
notion_token: [YOUR_NOTION_TOKEN]
parent_id: [YOUR_PAGE_OR_DATABASE_ID]
title: 예시 제목
content: 예시 내용

배포 방법

자동 배포 (GitHub Actions)

이 프로젝트는 GitHub Actions를 통해 자동으로 PyPI에 배포됩니다.

1. PyPI API 토큰 설정

  1. PyPI에 로그인
  2. Account Settings → API tokens → Add API token
  3. Token name: github-actions
  4. Scope: Entire account (all projects)
  5. 생성된 토큰을 복사

2. GitHub Secrets 설정

  1. GitHub 저장소 → Settings → Secrets and variables → Actions
  2. "New repository secret" 클릭
  3. Name: PYPI_API_TOKEN
  4. Value: 위에서 생성한 PyPI API 토큰

3. 배포 트리거

  • 태그 기반 배포: v1.0.0, v1.1.0 등의 태그를 푸시하면 자동 배포
  • 메인 브랜치 배포: main 브랜치에 푸시할 때마다 자동 배포
# 태그로 배포
git tag v0.2.1
git push origin v0.2.1

# 또는 main 브랜치에 푸시
git push origin main

수동 배포

# 빌드
python -m build

# PyPI에 업로드
python -m twine upload dist/*

개발 환경 설정

# 의존성 설치
pip install -r requirements.txt

# 개발 의존성 설치 (uv 사용)
uv sync --dev

Metadata

Release files for mcp-server-notion 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-notion 0.2.1
File Size Uploaded Provenance
mcp_server_notion-0.2.1.tar.gz 21.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-notion 0.2.1
File Interpreter ABI Platform
mcp_server_notion-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 kB

Release files / mcp_server_notion-0.2.1.tar.gz

Download URL mcp_server_notion-0.2.1.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fd8b308661e6e40b93e5bb077f4fe2680e77298c058996dc47746e0e5484ee27
BLAKE2b-256 checksum
How to use checksums
83cd9829ab7d638746c3d15906edd3e439d53c3b266af754ca1c5b9f01faf58a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / mcp_server_notion-0.2.1-py3-none-any.whl

Download URL mcp_server_notion-0.2.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebe9c929f01d869ce4bea33b637dce79a242b6a6ba48d3e042cb26344dc6b90a
BLAKE2b-256 checksum
How to use checksums
4c2bdae0a32785d07785e351a5d643dd64aa52f7044a7c0a46a8ea1366764739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Security for mcp-server-notion 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page