mcp-server-notion
mcp-server-notion is an MCP server that uses the Notion API to search for articles on Notion and retrieve their contents.
mcp-server-notion is a Model Context Protocol (MCP) server designed to interface with the Notion API, enabling users to search and retrieve articles stored within Notion databases. This server acts as a bridge between your application and Notion, allowing for seamless access to content stored in Notion. By leveraging the Notion API, mcp-server-notion provides a programmatic way to search for articles using specific keywords and retrieve either full or partial content of the articles. This is particularly useful for applications that require dynamic content retrieval from Notion, such as content management systems, knowledge bases, or personal productivity tools.
Features
- Search for articles within Notion databases
- Retrieve full article content or partial content
MCP Tools
- notion_search: Allows searching for articles using a query keyword and limits the number of results.
- notion_get_article: Retrieves an article by its ID and allows specifying the output format (json, markdown, text).
Usage with Different Platforms
python_script
python
import requests
NOTION_API_TOKEN = 'your_notion_integration_token'
headers = {
'Authorization': f'Bearer {NOTION_API_TOKEN}',
'Content-Type': 'application/json',
'Notion-Version': '2021-05-13'
}
def search_articles(query, limit=10):
url = 'https://api.notion.com/v1/search'
data = {
'query': query,
'page_size': limit
}
response = requests.post(url, headers=headers, json=data)
return response.json()
def get_article(article_id, format='json'):
url = f'https://api.notion.com/v1/pages/{article_id}'
response = requests.get(url, headers=headers)
if format == 'json':
return response.json()
elif format == 'markdown':
# Convert to markdown
pass
elif format == 'text':
# Convert to text
pass
return response.content
Related MCP Servers
View all knowledge_and_memory servers →git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Knowledge Graph Memory Server
by modelcontextprotocol
A basic implementation of persistent memory using a local knowledge graph, allowing Claude to remember information about the user across chats.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.
rust-docs-mcp-server
by Govcraft
The Rust Docs MCP Server provides an up-to-date knowledge source for specific Rust crates, enhancing the accuracy of AI coding assistants by allowing them to query current documentation.
mindmap-mcp-server
by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
mcp-obsidian
by MarkusPfundstein
MCP server to interact with Obsidian via the Local REST API community plugin.