MCP Notion Upload Server
Enables file uploads to Notion with complete workflow automation - uploads files up to 20MB, attaches them to specified Notion pages, and provides download URLs with metadata through the Notion API
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Notion Upload Serverupload my presentation.pdf to page abc123def456 and get the download link"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Notion Upload Server
Notion 파일 업로드 API를 위한 MCP (Model Context Protocol) 서버입니다.
기능
📁 기본 파일 업로드
Notion API를 통한 파일 업로드 (최대 20MB)
업로드된 파일 URL 반환
커스텀 파일명 지원
🚀 완전한 워크플로우 (NEW!)
원클릭 솔루션: 파일 업로드 + 페이지 첨부 + 다운로드 URL을 한 번에
지정된 Notion 페이지에 자동으로 파일 첨부
즉시 사용 가능한 다운로드 URL 반환
파일 메타데이터와 만료 시간 정보 제공
Related MCP server: Notion Weaver
설치
# uv를 사용하는 경우 (권장)
uv sync
# pip를 사용하는 경우
pip install -e .
# 또는 직접 의존성 설치
pip install httpx mcp[cli]Claude Desktop 설정
1. 설정 파일 위치
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json2. 기본 설정 (uv 사용)
{
"mcpServers": {
"notion-upload": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp_notion_upload",
"run",
"mcp_notion_upload.py"
]
}
}
}3. Python 직접 실행 설정
{
"mcpServers": {
"notion-upload": {
"command": "python",
"args": [
"/path/to/mcp_notion_upload.py"
]
}
}
}4. 가상환경 사용 설정
{
"mcpServers": {
"notion-upload": {
"command": "/path/to/.venv/bin/python",
"args": [
"/path/to/mcp_notion_upload.py"
]
}
}
}5. 환경 변수로 토큰 설정 (보안 권장)
토큰을 환경 변수로 미리 설정하면 매번 입력하지 않아도 됩니다:
{
"mcpServers": {
"notion-upload": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp_notion_upload",
"run",
"mcp_notion_upload.py"
],
"env": {
"NOTION_API_TOKEN": "secret_your_notion_token_here"
}
}
}
}사용 방법
Claude Desktop에서 설정 후, 다음과 같이 사용할 수 있습니다:
🚀 완전한 워크플로우 (추천)
한 번의 요청으로 업로드부터 다운로드 URL까지!
사용자: "문서.pdf 파일을 페이지 ID 2785bbc0e5c281f48dfae9a48f53f6a6에 첨부해서 다운로드 URL 받아줘"
Claude: [파일 업로드 + 페이지 첨부 + 다운로드 URL 반환]반환되는 정보:
📁 파일 업로드 ID
🔗 파일 블록 ID
🌐 다운로드 URL (1시간 유효)
⏰ 만료 시간
📊 파일 메타데이터
📁 기본 파일 업로드
단순 업로드만 필요한 경우:
사용자: "/Users/me/doc.pdf를 업로드해줘"
Claude: [파일 업로드 후 업로드 ID 반환]파라미터 전달 방법
MCP 서버의 파라미터들은 Claude와의 대화 중에 자연어로 전달합니다:
완전한 워크플로우 예시
"report.pdf를 페이지 2785bbc0e5c281f48dfae9a48f53f6a6에 첨부하고 다운로드 URL 가져와줘" "image.png를 회사로고.png 이름으로 페이지 abc123def456에 첨부해줘" "토큰 secret_xxx 사용해서 문서.pdf를 페이지 xyz789에 업로드하고 URL 받아줘"기본 업로드 예시
"Notion 토큰 secret_abcd1234를 사용해서 /Users/me/doc.pdf를 업로드해줘" "파일 /path/to/image.png를 logo.png라는 이름으로 Notion에 업로드해줘"환경 변수 사용시 (토큰이 미리 설정된 경우)
사용자: "문서.pdf를 페이지 abc123에 첨부해서 다운로드 링크 받아줘" Claude: [환경 변수의 토큰을 사용하여 완전한 워크플로우 수행]
필요한 정보
🚀 완전한 워크플로우의 경우
Notion API 토큰: Notion Integration에서 생성한 토큰 (필수)
파일 경로: 업로드할 파일의 전체 경로 (필수)
페이지 ID: 파일을 첨부할 Notion 페이지의 ID (필수)
파일명: 커스텀 파일명 (선택사항)
캡션: 파일 블록의 캡션 (선택사항)
📁 기본 업로드의 경우
Notion API 토큰: Notion Integration에서 생성한 토큰 (필수)
파일 경로: 업로드할 파일의 전체 경로 (필수)
파일명: 커스텀 파일명 (선택사항, 미지정시 원본 파일명 사용)
Notion 페이지 ID 찾는 방법
Notion 페이지 URL에서 ID를 추출할 수 있습니다:
https://www.notion.so/workspace/Page-Title-2785bbc0e5c281f48dfae9a48f53f6a6
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
이 부분이 페이지 ID입니다대시(-) 포함 또는 제외된 형태 모두 사용 가능:
2785bbc0-e5c2-81f4-8dfa-e9a48f53f6a6✅2785bbc0e5c281f48dfae9a48f53f6a6✅
Notion API 토큰 발급 방법
"New integration" 클릭
Integration 이름 설정 및 생성
"Internal Integration Token" 복사
API 함수 목록
이 MCP 서버는 두 가지 도구를 제공합니다:
1. upload_file_to_notion (기본 업로드)
파일만 업로드하고 파일 ID를 반환합니다.
반환값: 업로드된 파일 URL (string)
2. upload_and_attach_file_to_page (완전한 워크플로우) ⭐
파일 업로드 + 페이지 첨부 + 다운로드 URL을 한 번에 처리합니다.
반환값: 구조화된 객체 (dict)
{
"file_upload_id": "2785bbc0-e5c2-81f6-932c-00b265c6d205",
"file_block_id": "2785bbc0-e5c2-816e-b837-ec0b4298bf29",
"download_url": "https://prod-files-secure.s3.us-west-2.amazonaws.com/...",
"expiry_time": "2025-09-24T23:47:33.485Z",
"filename": "document.pdf",
"content_type": "application/pdf",
"file_size": 51290,
"status": "success",
"message": "File 'document.pdf' uploaded and attached successfully"
}주의사항
최대 파일 크기: 20MB
지원 파일 형식: 이미지, PDF, 오디오, 비디오 등
완전한 워크플로우: 다운로드 URL은 1시간 후 만료 (새 URL은 페이지 재조회로 갱신 가능)
기본 업로드: 업로드된 파일은 1시간 이내에 Notion 페이지나 블록에 수동 첨부 필요
설정 변경 후 Claude Desktop 재시작 필요
페이지 첨부 시 해당 페이지에 대한 편집 권한 필요
트러블슈팅
서버가 실행되지 않는 경우
경로가 절대 경로인지 확인
Python/uv 실행 파일 경로가 정확한지 확인
필요한 패키지가 설치되었는지 확인
파일 업로드 실패
Notion API 토큰이 유효한지 확인
파일 크기가 20MB 이하인지 확인
파일이 실제로 존재하는지 확인
페이지 첨부 실패 (완전한 워크플로우)
페이지 ID가 정확한지 확인 (대시 포함/제외 무관)
Integration이 해당 페이지에 접근 권한이 있는지 확인
페이지가 삭제되지 않았는지 확인
권한 관련 오류
Notion Integration을 페이지에 초대했는지 확인
페이지 공유 설정에서 Integration에 편집 권한 부여 확인
버전 히스토리
v2.0.0 (Latest)
✅ 완전한 워크플로우 추가:
upload_and_attach_file_to_page✅ 한 번의 호출로 파일 업로드 + 페이지 첨부 + 다운로드 URL 획득
✅ 구조화된 응답으로 파일 메타데이터 제공
✅ 개선된 에러 핸들링 및 디버깅 정보
v1.0.0
✅ 기본 파일 업로드 기능:
upload_file_to_notion✅ MCP (Model Context Protocol) 서버 구현
✅ Claude Desktop 통합 지원
Available Tools
2 toolsupload_and_attach_file_to_pageA
Upload a file to Notion and attach it to a specific page, returning download URL.
This function performs the complete workflow:
1. Upload file to Notion
2. Create file block and attach to specified page
3. Extract and return download URL with metadata
Args:
file_path: Path to the file to upload
page_id: Notion page ID to attach the file to (with or without dashes)
notion_token: Notion API token for authentication (optional if NOTION_API_TOKEN env var is set)
file_name: Optional custom filename (defaults to original filename)
caption: Optional caption for the file block
Returns:
Dictionary containing:
- file_upload_id: The uploaded file ID
- file_block_id: The created file block ID
- download_url: Temporary download URL (expires in 1 hour)
- expiry_time: ISO timestamp when download URL expires
- filename: Name of the file
- content_type: MIME type of the file
- file_size: Size of the file in bytes
Raises:
Exception: If file doesn't exist, exceeds size limit, or API call fails
Example:
result = await upload_and_attach_file_to_page(
"document.pdf",
"2785bbc0e5c281f48dfae9a48f53f6a6",
notion_token="ntn_xxx"
)
download_url = result["download_url"]
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| page_id | Yes | ||
| notion_token | No | ||
| file_name | No | ||
| caption | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden and does well by disclosing key behaviors: it outlines a multi-step workflow, mentions authentication via token or env var, specifies return values including expiry details, and notes exceptions like file existence and size limits. It doesn't cover rate limits or detailed error handling, but adds substantial context beyond basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with sections for purpose, workflow steps, args, returns, raises, and an example. It's appropriately sized but could be more front-loaded; the initial sentence is clear, but some details in later sections are verbose. Overall, it's efficient with minimal waste, though slight trimming might improve conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (multi-step workflow, 5 parameters, no annotations, but with output schema), the description is highly complete. It covers purpose, parameters, return values (aligned with output schema), errors, and includes an example. The output schema handles return structure, so the description doesn't need to duplicate that, making it comprehensive for agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate fully. It does so by explaining all 5 parameters in the 'Args' section, detailing their purposes, optionality, and defaults (e.g., 'notion_token' optional if env var set, 'file_name' defaults to original). This adds clear meaning beyond the bare schema, effectively documenting parameter usage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action: 'Upload a file to Notion and attach it to a specific page, returning download URL.' It distinguishes from the sibling tool 'upload_file_to_notion' by specifying the attachment to a page and returning metadata, making the purpose explicit and differentiated.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage through the example and parameter explanations, such as when to provide 'notion_token' or use environment variables. However, it lacks explicit guidance on when to choose this tool over 'upload_file_to_notion' or other alternatives, leaving the context somewhat implied rather than clearly stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
upload_file_to_notionA
Upload a file to Notion using the Notion API.
Args:
file_path: Path to the file to upload
notion_token: Notion API token for authentication (optional if NOTION_API_TOKEN env var is set)
file_name: Optional custom filename (defaults to original filename)
Returns:
The file upload ID from Notion (use upload_and_attach_file_to_page for URL)
Raises:
Exception: If file doesn't exist, exceeds size limit, or API call fails
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| notion_token | No | ||
| file_name | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions authentication requirements (Notion API token with environment variable fallback), potential errors (file existence, size limits, API failures), and the return value purpose. However, it doesn't specify rate limits, timeout behavior, or what happens to existing files with the same name.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (Args, Returns, Raises) and front-loaded purpose statement. While efficient, the 'Raises' section could be more concise by listing error conditions without the generic 'Exception' prefix. Every sentence adds value, but minor verbosity exists.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, 3 parameters with 0% schema coverage, and an output schema present, the description does a good job covering purpose, parameters, errors, and return value interpretation. However, it doesn't mention file format restrictions, size limits in concrete terms, or how the upload ID relates to Notion's internal structure, leaving some gaps for a mutation tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 0% schema description coverage, the description fully compensates by explaining all three parameters: 'file_path' (path to upload), 'notion_token' (authentication with env var fallback), and 'file_name' (optional custom name with default behavior). Each parameter's purpose and constraints are clearly documented beyond what the bare schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Upload a file') and target resource ('to Notion using the Notion API'), distinguishing it from the sibling tool 'upload_and_attach_file_to_page' which appears to have a different purpose. The verb+resource combination is precise and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool (uploading files to Notion) and mentions an alternative tool ('upload_and_attach_file_to_page') for obtaining URLs, but doesn't explicitly state when NOT to use this tool or compare it directly with the sibling. The guidance is helpful but not fully comprehensive regarding alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two tools have overlapping purposes that could cause confusion. 'upload_and_attach_file_to_page' includes uploading as part of its workflow, while 'upload_file_to_notion' is a standalone upload tool. An agent might struggle to choose between them when they just need to upload a file without attaching it to a page.
Both tools follow a consistent snake_case naming pattern with clear verb_noun structure. 'upload_and_attach_file_to_page' and 'upload_file_to_notion' are descriptive and follow the same naming convention throughout.
With only 2 tools, this server feels thin for a Notion integration. A typical Notion MCP server would include more operations like creating pages, retrieving content, updating blocks, or searching databases. The limited tool count suggests incomplete coverage of the domain.
The server is severely incomplete for a Notion integration. It only covers file upload operations, missing essential CRUD operations for pages, databases, blocks, and other core Notion resources. There's no way to create, read, update, or delete basic Notion objects beyond file attachments.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
File uploads for AI agents. Upload, list, and manage files. No signup required.
Upload, organize, search, and transform images, videos, and files with AI-powered tools.
Connect AnyFile to AI clients to manage files, share links, file requests, and analytics.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables secure file and bucket management operations with Supabase Storage through enterprise-grade security features, batch uploads/downloads, and comprehensive file management capabilities. Supports both local file paths and base64 data with advanced transformations and auto-download functionality.10MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI workflows to integrate with Notion workspaces, supporting page and database creation, queries with filters and sorting, content updates, and workspace-wide search operations.
- AlicenseNot gradedqualityDmaintenanceEnables creating projects from uploaded files directly from AI assistants. Provides tools for obtaining upload URLs and creating project import jobs from previously uploaded files.MIT
- FlicenseBqualityDmaintenanceEnables uploading images and files to Notion pages from Cursor chat, supporting multiple attachment types like image blocks, file blocks, cover images, and icons.2
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/goonoo/mcp_notion_upload'
If you have feedback or need assistance with the MCP directory API, please join our Discord server