Skip to content

Commit 166fb6a

Browse files
authored
Merge pull request #46 from stacklok/add-notion
Add a local MCP server for Notion
2 parents bba6010 + 246d2e6 commit 166fb6a

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

cmd/import-from-toolhive/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ func importEntry(name string, server *toolhiveRegistry.ImageMetadata, outputDir
199199
if err := encoder.Encode(server); err != nil {
200200
return fmt.Errorf("failed to marshal YAML: %w", err)
201201
}
202-
encoder.Close()
202+
err := encoder.Close()
203+
if err != nil {
204+
return fmt.Errorf("failed to close YAML encoder: %w", err)
205+
}
203206
yamlData := buf.Bytes()
204207

205208
// Add a header comment with metadata

registry/notion-local/spec.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: notion
2+
description: Provides integration with Notion APIs through a local Notion MCP Server.
3+
tier: Official
4+
status: Active
5+
transport: stdio
6+
tools:
7+
- API-get-user
8+
- API-get-users
9+
- API-get-self
10+
- API-post-database-query
11+
- API-post-search
12+
- API-get-block-children
13+
- API-patch-block-children
14+
- API-retrieve-a-block
15+
- API-update-a-block
16+
- API-delete-a-block
17+
- API-retrieve-a-page
18+
- API-patch-page
19+
- API-post-page
20+
- API-create-a-database
21+
- API-update-a-database
22+
- API-retrieve-a-database
23+
- API-retrieve-a-page-property
24+
- API-retrieve-a-comment
25+
- API-create-a-comment
26+
metadata:
27+
last_updated: "2025-08-06T00:24:22Z"
28+
pulls: 5403
29+
stars: 2880
30+
repository_url: https://github.com/makenotion/notion-mcp-server
31+
tags:
32+
- notion
33+
- notes
34+
image: mcp/notion:latest
35+
args: []
36+
permissions:
37+
network:
38+
outbound:
39+
allow_host:
40+
- api.notion.com
41+
allow_port:
42+
- 443
43+
env_vars:
44+
- name: OPENAPI_MCP_HEADERS
45+
description: 'HTTP headers for Notion API requests in JSON format. Example: {"Authorization":"Bearer ntn_****","Notion-Version":"2022-06-28"}'
46+
required: true
47+
secret: true

0 commit comments

Comments
 (0)