Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use the official Node.js image with a version suitable for your application
FROM node:18-alpine AS builder

# Set the working directory
WORKDIR /app

# Copy package files
COPY notion/package.json notion/package-lock.json ./

# Install dependencies
RUN npm install

# Copy the rest of the source code
COPY notion/tsconfig.json notion/src ./notion/

# Build the TypeScript application
RUN npm run build --prefix notion

# Use a smaller image to run the application
FROM node:18-alpine

# Set the working directory
WORKDIR /app

# Copy built files from the builder stage
COPY --from=builder /app/notion/build ./build
COPY --from=builder /app/notion/package.json /app/notion/package-lock.json ./

# Install only production dependencies
RUN npm ci --omit=dev

# Expose port if necessary
# EXPOSE 3000

# Command to run the application
CMD ["node", "build/index.js"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Notion MCP Server
[![smithery badge](https://smithery.ai/badge/@suekou/mcp-notion-server)](https://smithery.ai/server/@suekou/mcp-notion-server)

MCP Server for the Notion API, enabling Claude to interact with Notion workspaces.

Expand All @@ -9,6 +10,14 @@ Here is a detailed explanation of the steps mentioned above in the following art
- English Version: https://dev.to/suekou/operating-notion-via-claude-desktop-using-mcp-c0h
- Japanese Version: https://qiita.com/suekou/items/44c864583f5e3e6325d9

### Installing via Smithery

To install Notion MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@suekou/mcp-notion-server):

```bash
npx -y @smithery/cli install @suekou/mcp-notion-server --client claude
```

1. **Create a Notion Integration**:

- Visit the [Notion Your Integrations page](https://www.notion.so/profile/integrations).
Expand Down
17 changes: 17 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- notionApiToken
properties:
notionApiToken:
type: string
description: The API token for accessing the Notion API.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => ({ command: 'node', args: ['build/index.js'], env: { NOTION_API_TOKEN: config.notionApiToken } })