Visão geral
O que é o Servidor Notion MCP?
O Servidor Notion MCP é um servidor oficial projetado para aprimorar a funcionalidade do Notion, uma ferramenta popular de produtividade e organização. Este servidor atua como uma solução de backend que permite aos usuários gerenciar seus espaços de trabalho no Notion de forma mais eficaz, oferecendo recursos que agilizam fluxos de trabalho e melhoram a colaboração.
Recursos do Servidor Notion MCP
- Colaboração em Tempo Real: O servidor suporta atualizações em tempo real, permitindo que vários usuários trabalhem na mesma página do Notion simultaneamente, sem atrasos.
- Sincronização de Dados: Ele garante que todas as alterações feitas no Notion sejam sincronizadas entre dispositivos, proporcionando uma experiência contínua para os usuários.
- Integrações Personalizadas: Os usuários podem integrar vários aplicativos e serviços de terceiros, ampliando as capacidades do Notion.
- Gerenciamento de Usuários: O servidor oferece recursos robustos de gerenciamento de usuários, permitindo que administradores controlem o acesso e as permissões para diferentes usuários.
- Acesso à API: Os desenvolvedores podem utilizar a API para criar aplicativos ou integrações personalizadas que funcionem com os dados do Notion.
Como Configurar o Servidor Notion MCP
- Instalação: Comece baixando o Servidor Notion MCP do repositório oficial no GitHub.
- Configuração: Siga as instruções de configuração fornecidas na documentação para configurar o servidor de acordo com suas necessidades.
- Conectando ao Notion: Vincule sua conta do Notion ao servidor para habilitar a sincronização de dados e o acesso a todos os recursos.
- Testes: Após a configuração, realize testes para garantir que todas as funcionalidades estejam funcionando conforme o esperado.
- Implantação: Uma vez que tudo esteja configurado e testado, implante o servidor para uso dentro de sua organização ou projetos pessoais.
Perguntas Frequentes
Q: O Servidor Notion MCP é gratuito para usar?
A: Sim, o Servidor Notion MCP é de código aberto e está disponível gratuitamente. No entanto, os usuários podem incorrer em custos se optarem por hospedá-lo em um servidor pago.
Q: Posso personalizar o Servidor Notion MCP?
A: Absolutamente! O servidor foi projetado para ser personalizável, permitindo que os desenvolvedores modifiquem o código para atender às suas necessidades específicas.
Q: Quais são os requisitos do sistema para executar o Servidor Notion MCP?
A: O servidor pode ser executado na maioria dos sistemas operacionais modernos, mas é recomendável ter uma conexão de internet estável e RAM suficiente para lidar com múltiplos usuários.
Q: Como posso relatar problemas ou contribuir para o projeto?
A: Os usuários podem relatar problemas ou contribuir para o projeto visitando o repositório do GitHub e seguindo as diretrizes de contribuição fornecidas lá.
Q: Há suporte disponível para o Servidor Notion MCP?
A: Embora não haja uma equipe de suporte oficial, os usuários podem buscar ajuda da comunidade através de fóruns e da página de problemas do GitHub.
Detalhe
Notion MCP Server
[!NOTE]
We’ve introduced Notion MCP (Beta), a remote MCP server with the following improvements:
- Easy installation via standard OAuth. No need to fiddle with JSON or API token anymore.
- Powerful tools tailored to AI agents. These tools are designed with optimized token consumption in mind.
Learn more and try it out here
This project implements an MCP server for the Notion API.
Installation
1. Setting up Integration in Notion:
Go to https://www.notion.so/profile/integrations and create a new internal integration or select an existing one.
While we limit the scope of Notion API's exposed (for example, you will not be able to delete databases via MCP), there is a non-zero risk to workspace data by exposing it to LLMs. Security-conscious users may want to further configure the Integration's Capabilities.
For example, you can create a read-only integration token by giving only "Read content" access from the "Configuration" tab:
2. Connecting content to integration:
Ensure relevant pages and databases are connected to your integration.
To do this, visit the Access tab in your internal integration settings. Edit access and select the pages you'd like to use.
Alternatively, you can grant page access individually. You'll need to visit the target page, and click on the 3 dots, and select "Connect to integration".
3. Adding MCP config to your client:
Using npm:
Add the following to your .cursor/mcp.json
or claude_desktop_config.json
(MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
)
{
"mcpServers": {
"notionApi": {
"command": "npx",
"args": ["-y", "@notionhq/notion-mcp-server"],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\" }"
}
}
}
}
Using Docker:
There are two options for running the MCP server with Docker:
Option 1: Using the official Docker Hub image:
Add the following to your .cursor/mcp.json
or claude_desktop_config.json
:
{
"mcpServers": {
"notionApi": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "OPENAPI_MCP_HEADERS",
"mcp/notion"
],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer ntn_****\",\"Notion-Version\":\"2022-06-28\"}"
}
}
}
}
This approach:
- Uses the official Docker Hub image
- Properly handles JSON escaping via environment variables
- Provides a more reliable configuration method
Option 2: Building the Docker image locally:
You can also build and run the Docker image locally. First, build the Docker image:
docker-compose build
Then, add the following to your .cursor/mcp.json
or claude_desktop_config.json
:
{
"mcpServers": {
"notionApi": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"OPENAPI_MCP_HEADERS={\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\"}",
"notion-mcp-server"
]
}
}
}
Don't forget to replace ntn_****
with your integration secret. Find it from your integration configuration tab:
Installing via Smithery
To install Notion API Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @makenotion/notion-mcp-server --client claude
Examples
- Using the following instruction
Comment "Hello MCP" on page "Getting started"
AI will correctly plan two API calls, v1/search
and v1/comments
, to achieve the task
- Similarly, the following instruction will result in a new page named "Notion MCP" added to parent page "Development"
Add a page titled "Notion MCP" to page "Development"
- You may also reference content ID directly
Get the content of page 1a6b35e6e67f802fa7e1d27686f017f2
Development
Build
npm run build
Execute
npx -y --prefix /path/to/local/notion-mcp-server @notionhq/notion-mcp-server
Publish
npm publish --access public
Configuração do Servidor
{
"mcpServers": {
"notion-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--makenotion--notion-mcp-server--notion-mcp-server",
"node bin/cli.mjs"
],
"env": {
"OPENAPI_MCP_HEADERS": "openapi-mcp-headers"
}
}
}
}