notion-mcp-server
Version:
Notion MCP server with token auth: connect Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client to Notion. Search, create and edit pages, query databases, comment and upload files. Runs headless in CI and agents.
15 lines (14 loc) • 636 B
JavaScript
import { createRequire } from "node:module";
// Read the version straight from package.json so the MCP handshake always
// reports the real published version instead of a hand-maintained constant
// that silently drifts. createRequire resolves relative to this module, which
// is two levels deep in both src/ (src/config/index.ts) and build/.
const require = createRequire(import.meta.url);
const pkg = require("../../package.json");
// Configuration
export const CONFIG = {
serverName: "notion-mcp-server",
serverTitle: "Notion",
serverVersion: pkg.version,
serverUrl: "https://github.com/awkoy/notion-mcp-server",
};