Skip to main content
Glama

notion-mcp-server

notion.ts560 B
import { Client } from "@notionhq/client"; export function getApiToken(): string { const token = process.env.NOTION_TOKEN; if (!token) { console.error("Error: NOTION_TOKEN environment variable is required"); process.exit(1); } return token; } export function getRootPageId(): string { const pageId = process.env.NOTION_PAGE_ID; if (!pageId) { console.error("Error: NOTION_PAGE_ID environment variable is required"); process.exit(1); } return pageId; } export const notion = new Client({ auth: process.env.NOTION_TOKEN, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/awkoy/notion-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server