内容
# Research MCP Server
这是一个关于MCP服务器的研究项目的代码库。
<a href="https://glama.ai/mcp/servers/54ktuin739"><img width="380" height="200" src="https://glama.ai/mcp/servers/54ktuin739/badge" alt="Research Server MCP server" /></a>
## 特性
* 作为MCP服务器工作。
* 从Notion中检索调查数据。
* 在Notion中创建调查页面。
## 先决条件
* Python 3.12.1或更高版本
* uv 0.5.25或更高版本
* Claude Desktop Client
## 使用方法
1. 克隆代码库。
2. 从[Notion Integrations](https://www.notion.so/my-integrations)获取Notion令牌。
3. 在Notion中创建一个数据库页面并获取数据库ID。数据库ID是页面URL的最后一部分。
4. 创建一个`.env`文件,如下所示:
```shell
NOTION_TOKEN=[YOUR_NOTION_TOKEN]
NOTION_ROOT_DATABASE_ID=[YOUR_NOTION_DATABASE_ID]
```
5. 在`claude_desktop.json`中添加MCP服务器定义:
```json
{
...
"mcpServers": {
"Research MCP Server": {
"command": "uv",
"args": [
"run",
"--with", "mcp[cli]",
"--with", "notion-client",
"--with", "pydantic",
"mcp",
"run",
"/path/to/research-mcp-server/server.py"
]
}
}
}
```
6. 重启Claude Desktop Client以启动Research MCP Server。
7. 请Claude执行调查并查看结果。