Notion MCP Server + Slack MCP Server

Beginner25 minutes
Use Cases

Common Use Cases

  • Wiki search from Slack
  • New page notifications
  • Meeting notes sharing
  • Onboarding resource access
Before You Begin

Prerequisites

  • Notion workspace with pages
  • Slack workspace
Walkthrough

Step-by-Step Guide

1

Connect Notion

Set up the Notion MCP Server and share relevant workspaces.

2

Connect Slack

Configure the Slack MCP Server with appropriate permissions.

3

Build Search Function

Create a Slack command that searches Notion and returns matching pages.

async function searchWiki(query) {
  const results = await notion.search({ query, filter: { property: "object", value: "page" } });
  const formatted = results.results.slice(0, 5).map(p => `• <${p.url}|${getTitle(p)}>`).join("\n");
  return formatted || "No results found.";
}
4

Notify on New Pages

Post to Slack when new wiki pages are created in specific sections.

Examples

Code Examples

typescript
Page Share
async function shareInSlack(pageId, channel) {
  const page = await notion.getPage({ page_id: pageId });
  const blocks = await notion.listBlocks({ block_id: pageId });
  const preview = blocks.results.slice(0, 3).map(b => b.paragraph?.text || "").join("\n");
  await slack.sendMessage({ channel, text: `📄 *${getTitle(page)}*\n${preview}\n<${page.url}|Read more>` });
}
Help

Troubleshooting

Search returns too many results+
How do I handle private pages?+

Quick Info

DifficultyBeginner
Time Estimate25 minutes
Tools
Notion MCP ServerSlack MCP Server

Need Integration Help?

Our team can implement this integration for you.

Get in Touch
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.

Notion MCP Server + Slack MCP Server Integration - CortexAgent