Notion MCP Server — Hosted for Any AI Agent
MCP Server language Hosted shield Key RequiredPages, databases, blocks, search via Notion's official MCP
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"notion-workspace": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-notion",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the search tool to search across all pages and databases shared with your integration. returns matching pages and databases by title or content”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
The Notion MCP server connects AI agents to your Notion workspace — searching pages, querying databases, and creating or updating content. Hosted on Aerostack as a single URL for Claude, Cursor, ChatGPT, or any MCP agent, it lets assistants turn notes into structured data, draft docs, and keep your knowledge base current.
description Overview
Notion Workspace MCP
Official proxy MCP — Pages, databases, blocks, search via Notion's official MCP
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-notion
Overview
Notion Workspace is a proxy MCP server that forwards requests directly to the official Notion MCP endpoint at https://mcp.notion.com/mcp. All tools are maintained by Notion — new tools are available immediately without any Aerostack update.
Type: Proxy (hosted by Notion)
Auth: Bearer token via NOTION_API_KEY
Important: OAuth Token Required
Notion's MCP endpoint requires an OAuth access token. Internal integration tokens (ntn_...) will NOT work — you'll get a 401 "Invalid token format" error.
How to Get a Notion OAuth Token
- Go to notion.so/my-integrations
- Click "New integration" → Set type to Public (not Internal)
- Fill in the OAuth settings:
- Redirect URI: Any URL you control (e.g.,
https://yoursite.com/callback) - Integration type: Public
- Redirect URI: Any URL you control (e.g.,
- Copy your OAuth client ID and OAuth client secret
- Direct your browser to:
https://api.notion.com/v1/oauth/authorize?client_id=YOUR_CLIENT_ID&response_type=code&owner=user&redirect_uri=YOUR_REDIRECT_URI - Authorize the integration → you'll be redirected with a
codeparameter - Exchange the code for a token:
curl -X POST https://api.notion.com/v1/oauth/token \ -H "Content-Type: application/json" \ -u "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \ -d '{"grant_type": "authorization_code", "code": "YOUR_CODE", "redirect_uri": "YOUR_REDIRECT_URI"}' - Copy the
access_tokenfrom the response — this is yourNOTION_API_KEY
See: developers.notion.com/docs/authorization
Available Tools
- search_pages — Search across all Notion pages and databases accessible to the integration by title or content
- get_page — Retrieve a Notion page's properties and metadata by its page ID
- create_page — Create a new Notion page inside a parent page or database with properties and content blocks
- update_page — Update properties of an existing Notion page such as title, status, date, or any database property
- query_database — Query a Notion database with filters and sorting to retrieve matching page entries
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
NOTION_API_KEY |
Yes | Notion OAuth Access Token | See "How to Get a Notion OAuth Token" above |
Setup
Add to Aerostack Workspace
- Go to app.aerostack.dev/workspaces → Create Workspace
- Inside your workspace → Add Server → search "Notion Workspace"
- Enter your OAuth access token as
NOTION_API_KEY— stored encrypted, injected automatically - Click Test to verify the connection
Once added, every AI agent in your workspace can use Notion tools automatically.
Usage
Example Prompts
"List all my Notion items and summarize the most recent ones"
"Find anything related to [keyword] in Notion"
"Create a new entry with the following details: ..."
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-notion \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-NOTION-API-KEY: your-oauth-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_pages","arguments":{"query":"test"}}}'
License
MIT
terminal Tools (9)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
search #1 Search across all pages and databases shared with your integration. Returns matching pages and databases by title or content.
get_page #2 Get a Notion page with all its properties (title, status, dates, tags, etc.). Does NOT return page body content — use get_page_content for that.
create_page #3 Create a new page in a Notion database with properties and optional body content blocks.
update_page #4 Update properties on an existing Notion page. Only include the properties you want to change — others remain untouched. Can also archive a page.
query_database #5 Query a Notion database with optional filters and sorts. Returns matching pages with their properties.
get_database #6 Get a database schema — all property names, types, and options (select choices, relation targets, etc.). Use this to understand a database structure before querying or creating pages.
get_page_content #7 Read the body content of a Notion page — all blocks (paragraphs, headings, lists, code, etc.). Returns both structured blocks and a plain text version.
append_blocks #8 Append content blocks to the end of a Notion page. Use this to add text, headings, lists, or other content to an existing page.
list_databases #9 List all databases shared with your integration. Useful to discover available databases before querying.
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-notion
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
Tags
More in Database
Browse Database MCPs →Airtable
by @aerostack
Turn your Airtable bases into an AI-queryable database — create, update, search, and analyze records with natural language.
Mongodb
by @aerostack
Query collections, insert documents, and run aggregation pipelines on your MongoDB Atlas database — AI-native document database access.
Redis
by @aerostack
Get, set, and manage keys, hashes, and lists in your Upstash Redis database — AI-native key-value store access.
Supabase
by @aerostack
Query Postgres tables, manage storage buckets, and interact with your Supabase backend — AI-native database access.
Turso
by @aerostack
Execute SQL queries, manage tables, and interact with your Turso (LibSQL) edge database — AI-native SQLite at the edge.
Dynamodb
by @aerostack
Query, put, update, delete, and scan items in Amazon DynamoDB tables — AI-native NoSQL database access for any agent.
Frequently asked questions
What is the Notion MCP server and what can it do? +
The Notion MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `search`, `get_page`, `create_page`, `update_page`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Notion MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Notion MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Notion MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Notion MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-notion": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-notion"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Notion MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-notion", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-notion"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Notion MCP require authentication? +
Yes. Notion uses Bearer token authentication. Set your token as a workspace secret in the Aerostack dashboard.