Skip to main content
Glama

Notion MCP Server

Official
by makenotion
build-cli.js811 B
import * as esbuild from 'esbuild'; import { chmod } from 'fs/promises'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __dirname = dirname(fileURLToPath(import.meta.url)); async function build() { await esbuild.build({ entryPoints: [join(__dirname, 'start-server.ts')], bundle: true, minify: true, platform: 'node', target: 'node18', format: 'esm', outfile: 'bin/cli.mjs', banner: { js: "#!/usr/bin/env node\nimport { createRequire } from 'module';const require = createRequire(import.meta.url);" // see https://github.com/evanw/esbuild/pull/2067 }, external: ['util'], }); // Make the output file executable await chmod('./bin/cli.mjs', 0o755); } build().catch((err) => { console.error(err); process.exit(1); });

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/makenotion/notion-mcp-server'

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