engram-notion-mcp 0.1.1 → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -70
- package/dist/index.js +18808 -0
- package/package.json +34 -6
- package/scripts/release.ts +76 -0
- package/src/{index.js → index.ts} +122 -81
- package/tsconfig.json +14 -0
package/README.md
CHANGED
|
@@ -47,32 +47,39 @@ To use Engram Notion MCP, you need to set up your environment variables.
|
|
|
47
47
|
| `TELEGRAM_CHAT_ID` | No | For `send_alert` tool. |
|
|
48
48
|
| `AGENT_MEMORY_PATH` | No | Custom path for the SQLite memory database. |
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<details>
|
|
53
|
-
<summary><strong>🔑 How to get Notion API Key</strong></summary>
|
|
54
|
-
|
|
55
|
-
1. Go to [Notion My Integrations](https://www.notion.so/my-integrations).
|
|
56
|
-
2. Click **New integration**.
|
|
57
|
-
3. Name it (e.g., "Engram Notion MCP") and submit.
|
|
58
|
-
4. Copy the **Internal Integration Secret**. this is your `NOTION_API_KEY`.
|
|
59
|
-
</details>
|
|
50
|
+
---
|
|
60
51
|
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
52
|
+
> ### 💡 Quick Setup Tips
|
|
53
|
+
> <details>
|
|
54
|
+
> <summary>
|
|
55
|
+
> <strong>🔑 How to get Notion API Key</strong>
|
|
56
|
+
> </summary>
|
|
57
|
+
>
|
|
58
|
+
> 1. Go to [Notion My Integrations](https://www.notion.so/my-integrations).
|
|
59
|
+
> 2. Click **New integration**.
|
|
60
|
+
> 3. Name it (e.g., "Engram Notion MCP") and submit.
|
|
61
|
+
> 4. Copy the **Internal Integration Secret**. this is your `NOTION_API_KEY`.
|
|
62
|
+
> </details>
|
|
63
|
+
>
|
|
64
|
+
> <details>
|
|
65
|
+
> <summary>
|
|
66
|
+
> <strong>🤖 How to get Telegram Bot Token & Chat ID</strong>
|
|
67
|
+
> </summary>
|
|
68
|
+
>
|
|
69
|
+
> 1. **Bot Token**:
|
|
70
|
+
> - Open Telegram and search for **@BotFather**.
|
|
71
|
+
> - Send the command `/newbot`.
|
|
72
|
+
> - Follow the prompts to name your bot.
|
|
73
|
+
> - Copy the **HTTP API Token**.
|
|
74
|
+
>
|
|
75
|
+
> 2. **Chat ID**:
|
|
76
|
+
> - Search for **@userinfobot** in Telegram.
|
|
77
|
+
> - Click Start or send `/start`.
|
|
78
|
+
> - It will reply with your **Id**. Copy this number.
|
|
79
|
+
> </details>
|
|
80
|
+
>
|
|
75
81
|
|
|
82
|
+
---
|
|
76
83
|
|
|
77
84
|
### Configuration Patterns
|
|
78
85
|
|
|
@@ -96,21 +103,24 @@ To give the agent access to multiple specific pages:
|
|
|
96
103
|
|
|
97
104
|
---
|
|
98
105
|
|
|
99
|
-
## 🔌 Client Setup Instructions
|
|
100
|
-
Configure your favorite AI tool to use Engram Notion MCP. Click to expand your tool of choice:
|
|
106
|
+
## 🔌 Installation & Client Setup Instructions
|
|
101
107
|
|
|
102
|
-
<details>
|
|
103
|
-
<summary
|
|
108
|
+
<details open>
|
|
109
|
+
<summary>
|
|
110
|
+
<h3 style="display: inline-block;"> ⚡ Recommended (Fastest) - Bun</h3>
|
|
111
|
+
</summary>
|
|
112
|
+
|
|
113
|
+
Use `bunx` to run the server with native performance (`bun:sqlite`).
|
|
104
114
|
|
|
105
115
|
Add this to your `claude_desktop_config.json` or `mcp.json`.
|
|
106
116
|
|
|
107
|
-
**Config
|
|
117
|
+
**Config using `bunx` (Recommended):**
|
|
108
118
|
```json
|
|
109
119
|
{
|
|
110
120
|
"mcpServers": {
|
|
111
|
-
"engram": {
|
|
112
|
-
"command": "
|
|
113
|
-
"args": ["
|
|
121
|
+
"engram-notion-mcp": {
|
|
122
|
+
"command": "bunx",
|
|
123
|
+
"args": ["engram-notion-mcp"],
|
|
114
124
|
"env": {
|
|
115
125
|
"NOTION_API_KEY": "secret_your_key_here"
|
|
116
126
|
}
|
|
@@ -120,67 +130,116 @@ Add this to your `claude_desktop_config.json` or `mcp.json`.
|
|
|
120
130
|
```
|
|
121
131
|
</details>
|
|
122
132
|
|
|
133
|
+
---
|
|
134
|
+
|
|
123
135
|
<details>
|
|
124
|
-
<summary
|
|
136
|
+
<summary>
|
|
137
|
+
<h3 style="display: inline-block;"> 🐢 Standard - Node.js (NPX)</h3>
|
|
138
|
+
</summary>
|
|
139
|
+
|
|
140
|
+
Works with any standard Node.js environment (`better-sqlite3`).
|
|
125
141
|
|
|
126
|
-
|
|
142
|
+
Add this to your `claude_desktop_config.json` or `mcp.json`.
|
|
127
143
|
|
|
128
|
-
**
|
|
144
|
+
**Config using `npx` (Standard):**
|
|
129
145
|
```json
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
146
|
+
{
|
|
147
|
+
"mcpServers": {
|
|
148
|
+
"engram-notion-mcp": {
|
|
149
|
+
"command": "npx",
|
|
150
|
+
"args": ["-y", "engram-notion-mcp"],
|
|
151
|
+
"env": {
|
|
152
|
+
"NOTION_API_KEY": "secret_your_key_here"
|
|
153
|
+
}
|
|
136
154
|
}
|
|
137
155
|
}
|
|
138
156
|
}
|
|
139
157
|
```
|
|
140
|
-
|
|
141
|
-
**Where to put it:**
|
|
142
|
-
- **Cursor / Windsurf / VS Code**: User Settings (`settings.json`).
|
|
143
|
-
- **Cline / Roo Code**: Extension Settings -> MCP Servers.
|
|
144
|
-
- **Kilo Code**: `.kilo/config.json`.
|
|
145
158
|
</details>
|
|
146
159
|
|
|
160
|
+
---
|
|
161
|
+
|
|
147
162
|
<details>
|
|
148
|
-
<summary
|
|
163
|
+
<summary>
|
|
164
|
+
<h3 style="display: inline-block;"> 🐍 Alternative - Python (UVX / PIPX)</h3>
|
|
165
|
+
</summary>
|
|
149
166
|
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
gemini mcp add engram node "npx engram-mcp" -e NOTION_API_KEY=secret_...
|
|
153
|
-
```
|
|
167
|
+
If you prefer `uvx` or `pipx` or have strict Python environments:
|
|
154
168
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
Add this to your `claude_desktop_config.json` or `mcp.json`.
|
|
170
|
+
|
|
171
|
+
**Config using `uvx` (Alternative):**
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"mcpServers": {
|
|
175
|
+
"engram-notion-mcp": {
|
|
176
|
+
"command": "uvx",
|
|
177
|
+
"args": ["engram-notion-mcp"],
|
|
178
|
+
"env": {
|
|
179
|
+
"NOTION_API_KEY": "secret_your_key_here"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
159
184
|
```
|
|
160
|
-
</details>
|
|
161
185
|
|
|
162
|
-
|
|
163
|
-
<summary><strong>🐍 Manual / Python Native</strong></summary>
|
|
186
|
+
---
|
|
164
187
|
|
|
165
|
-
|
|
188
|
+
**Config using `pipx` (Alternative):**
|
|
166
189
|
|
|
167
190
|
```json
|
|
168
|
-
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
191
|
+
{
|
|
192
|
+
"mcpServers": {
|
|
193
|
+
"engram-notion-mcp": {
|
|
194
|
+
"command": "pipx",
|
|
195
|
+
"args": ["run", "engram-notion-mcp"],
|
|
196
|
+
"env": { ... }
|
|
197
|
+
}
|
|
198
|
+
}
|
|
172
199
|
}
|
|
173
200
|
```
|
|
174
201
|
</details>
|
|
175
202
|
|
|
176
203
|
---
|
|
177
204
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
205
|
+
**Where to put it:**
|
|
206
|
+
- **🖥️ Desktop Apps (Claude Desktop): `claude_desktop_config.json`**
|
|
207
|
+
- **🆚 VS Code / Cursor / Windsurf**: User Settings (`settings.json`).
|
|
208
|
+
- **Cline / Roo Code**: Extension Settings -> MCP Servers.
|
|
209
|
+
- **Kilo Code**: `.kilo/config.json`.
|
|
210
|
+
- **⌨️ Gemini CLI:**
|
|
211
|
+
<details>
|
|
212
|
+
<summary>
|
|
213
|
+
<strong>Bun (Recommended)</strong>
|
|
214
|
+
</summary>
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
gemini mcp add engram-notion-mcp bunx "engram-notion-mcp" -e NOTION_API_KEY=<your_secret_key>
|
|
218
|
+
```
|
|
219
|
+
</details>
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary>
|
|
223
|
+
<strong>Node.js - NPX (Standard)</strong>
|
|
224
|
+
</summary>
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
gemini mcp add engram node "npx engram-notion-mcp" -e NOTION_API_KEY=<your_secret_key>
|
|
228
|
+
```
|
|
229
|
+
</details>
|
|
184
230
|
|
|
185
231
|
---
|
|
186
|
-
|
|
232
|
+
|
|
233
|
+
## 💬 Support & Feedback
|
|
234
|
+
If you face any issues or have suggestions, please feel free to:
|
|
235
|
+
- Open an issue on this [GitHub Repository](https://github.com/shubhamomar/engram-notion-mcp/issues).
|
|
236
|
+
- Reach out to me directly via my GitHub profile.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Quick Links
|
|
241
|
+
|
|
242
|
+
This MCP tool is published as a package on NPM and PyPI.
|
|
243
|
+
|
|
244
|
+
- [Bun / Node.js Package on NPM](https://www.npmjs.com/package/engram-notion-mcp)
|
|
245
|
+
- [Python Package on PyPI](https://pypi.org/project/engram-notion-mcp/)
|