Notion MCP Server for VS Code: Setup & Config
Connect VS Code to the Notion API to work with pages and data sources.
What you can do with Notion in VS Code
Choose it for local Notion API access with scoped integrations and Markdown page tools.
- Query Notion data sources with filters and sorting.
- Update page text or move a page to another parent.
Before you start: Notion in VS Code
- A Notion internal integration
- Access granted to the relevant pages or databases
- An MCP-compatible client
- npx for the npm launch method
This configuration launches the local stdio server. HTTP and Docker alternatives are documented. Notion prioritizes support for its separate remote service.
Notion VS Code configuration
Choose VS Code configuration scope
For Notion MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.
Add Notion MCP Server to VS Code
Use the notion-mcp-server entry below in servers. Keep Notion MCP Server's documented stdio connection fields and your other VS Code entries.
Check Notion MCP Server in VS Code
Notion MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.
Config file · Workspace: .vscode/mcp.json
{
"servers": {
"notion-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@notionhq/notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<Notion internal integration token>"
}
}
}
}Notion tools available to VS Code
Notion's stored tool list documents 9 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.
- query-data-source
Look for query-data-source among VS Code's agent-mode tools after starting Notion through the MCP controls.
- retrieve-a-data-source
Look for retrieve-a-data-source among VS Code's agent-mode tools after starting Notion through the MCP controls.
Read a data source schema and metadata.
- update-a-data-source
Look for update-a-data-source among VS Code's agent-mode tools after starting Notion through the MCP controls.
Change properties belonging to a data source.
- create-a-data-source
Look for create-a-data-source among VS Code's agent-mode tools after starting Notion through the MCP controls.
Add a new data source.
- list-data-source-templates
Look for list-data-source-templates among VS Code's agent-mode tools after starting Notion through the MCP controls.
- move-page
Look for move-page among VS Code's agent-mode tools after starting Notion through the MCP controls.
Relocate a page beneath another parent.
- retrieve-a-database
Look for retrieve-a-database among VS Code's agent-mode tools after starting Notion through the MCP controls.
Read database metadata and associated data source identifiers.
- retrieve-page-markdown
Look for retrieve-page-markdown among VS Code's agent-mode tools after starting Notion through the MCP controls.
- update-page-markdown
Look for update-page-markdown among VS Code's agent-mode tools after starting Notion through the MCP controls.
Troubleshooting Notion in VS Code
- Make npx @notionhq/notion-mcp-server (Node.js/npm) available in the workspace, container, or remote environment hosting Notion MCP Server. Start through VS Code's MCP controls; inspect output and trust prompts.
- For Notion MCP Server, keep NOTION_TOKEN out of version control; VS Code documents input variables and secret handling.
- Notion MCP Server uses stdio here: VS Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: The local repository no longer receives active issue and pull request monitoring.
- Known limitation: Upgrading can require changes to hardcoded database tool names.
- General VS Code troubleshooting lives in the /clients/vscode guide.
Notion MCP Server — details. VS Code guide