客户支持 |
登录 |
Obsidian API 与 MCP

法规监测,直接进入您的 AI。

用日常语言提问。您的助手读取 Obsidian 监测项目,在您已在使用的对话中给出附官方来源的回答。您自己的工具可通过 API 获取同样的数据。

2 分钟完成连接 以及任意 MCP 客户端

2 分钟完成连接,用于 AI 或您的工具。

选择您的助手:输入一个地址,然后用 Obsidian 账户登录,无需 API 密钥。脚本和内部工具请选择 API。使用其他 AI?把我们的指南粘贴给它。

打开文档
https://mcp.obsidianri.com/mcp
Claude 徽标

在 Claude 中安装 Obsidian

claude.ai、Claude Desktop 和 Claude Code。所有 Claude 方案均可使用,包括 Free。

  1. 打开 Claude,进入 Customize → Connectors(claude.ai/customize/connectors)。所有 Claude 方案均可使用,包括 Free。
  2. 点击 + Add,然后点击 Add custom connector。
  3. 填写名称(例如 Obsidian Regulatory),粘贴地址 https://mcp.obsidianri.com/mcp,点击 Continue,再点击 Add。无需 API 密钥。
  4. 浏览器随即打开一个窗口:登录您的 Obsidian 账户并点击 Allow。连接完成。向 Claude 提一个监管问题来测试一下吧。
在终端中使用 Claude Code
claude mcp add --transport http obsidian https://mcp.obsidianri.com/mcp
ChatGPT 徽标

在 ChatGPT 中安装 Obsidian

网页版 ChatGPT Business、Enterprise 和 Edu。

  1. 在网页版 ChatGPT 中打开 Plugins(chatgpt.com/plugins)。自定义 MCP 服务器适用于 Business、Enterprise 和 Edu 方案。
  2. 点击 +,再点击 Add custom MCP server,并填写名称(例如 Obsidian Regulatory)。
  3. 在 Connection 中粘贴 https://mcp.obsidianri.com/mcp,选择 OAuth,勾选 I understand and want to continue,然后点击 Create as a plugin。
  4. 登录您的 Obsidian 账户并点击 Allow。在新对话中输入 @ 并选择 Obsidian。
Gemini 徽标

在 Gemini 中安装 Obsidian

网页版 Gemini,通过 Gemini Apps Developer Mode 接入;同时支持 Gemini CLI。

  1. 在网页版 Gemini 中,打开 Settings → Gemini Apps Developer Mode(gemini.google.com/devmode)。
  2. 点击 Choose an app,然后点击 + Create new。将 https://mcp.obsidianri.com/mcp 粘贴到 MCP Server URL,并点击 Next。
  3. 勾选风险声明,点击 Connect,将应用命名为 Obsidian,再点击 Connect。
  4. 登录您的 Obsidian 账户并点击 Allow。向 Gemini 提一个法规问题进行测试。
Gemini CLI
gemini mcp add --transport http --scope user obsidian https://mcp.obsidianri.com/mcp
# then, inside the CLI :
/mcp auth obsidian
Grok 徽标

在 Grok 中安装 Obsidian

grok.com。Business 和 Enterprise 方案需由管理员先启用连接器。

  1. 打开 grok.com/connectors。
  2. 点击 New Connector,然后点击 Custom。
  3. 将 https://mcp.obsidianri.com/mcp 粘贴为服务器地址。
  4. 登录您的 Obsidian 账户并点击 Allow。向 Grok 提一个法规问题进行测试。
Perplexity 徽标

在 Perplexity 中安装 Obsidian

Perplexity Pro、Max 和 Enterprise。Enterprise 方案需由管理员先允许自定义连接器。

  1. 在 Perplexity 中打开设置,然后进入 Connectors。
  2. 添加一个自定义远程连接器,并命名为 Obsidian。
  3. 粘贴 https://mcp.obsidianri.com/mcp,并选择 OAuth。
  4. 登录您的 Obsidian 账户并点击 Allow。向 Perplexity 提一个法规问题进行测试。

使用 Obsidian API

适用于脚本、自动化和内部工具。REST 请求,JSON 响应。

  1. 在您的 Obsidian 账户中创建 API 密钥,需使用包含 API 访问权限的套餐。
  2. 在发往 https://api.obsidianri.com 的每个请求中,通过 X-API-Key 请求头发送该密钥。
  3. 读取 JSON:监测项目的新闻、监测项目列表和法规数据库,均附官方来源。
在终端中发送第一个请求
curl -H "X-API-Key: YOUR_API_KEY" "https://api.obsidianri.com/v1/monitoring/news?limit=5"

其他 AI:粘贴这段内容,它会引导您。

将这份简短指南复制到您的助手或智能体中。它会读取指南,选择最合适的连接方式(MCP 或 API),并一步步引导您完成。

# Obsidian : connect your user to their regulatory data

Your user wants their Obsidian account (regulatory watches, official news, regulatory database) available to you. Pick the best method for the tool you run in, then walk the user through it step by step, in their language. Never ask for their password.

## Method 1 : MCP (best for chat assistants and coding agents)
- Server URL : https://mcp.obsidianri.com/mcp
- Transport : Streamable HTTP. Sign-in : OAuth with the user's Obsidian account (dynamic client registration, PKCE). No API key.
- Works where the user can add a remote MCP server or custom connector : Claude, ChatGPT (Business, Enterprise, Edu), Gemini (Developer Mode, Gemini CLI), Grok, Le Chat, Perplexity (Pro and up), Microsoft Copilot Studio, Cursor, VS Code, Windsurf, Kimi Code, Qwen Code, Claude Code.
- Tools : monitoring_news (latest news of the user's watches), my_watches, database_search, database_overview, database_regulation.
- Details : https://obsidianri.com/docs/mcp

## Method 2 : REST API (scripts, automations, tools without MCP)
- Base URL : https://api.obsidianri.com ; header X-API-Key : YOUR_API_KEY. The user creates the key at https://app.obsidianri.com/account#api (plans with API access).
- GET /v1/monitoring/news (q, jurisdiction, topic, kind, watch, since, limit)
- GET /v1/monitoring/watches
- GET /v1/database/search (q, jurisdiction, industry, framework, status, limit) ; /v1/database/regulation ; /v1/database/overview
- Answers are JSON. Reference : https://obsidianri.com/docs/api (OpenAPI : https://api.obsidianri.com/openapi.json)

## Which one
1. You can add a remote MCP server or connector : Method 1. Give the exact menu path of your own app.
2. No MCP, but you can call HTTP or run code : Method 2. Ask the user to create an API key and paste it.
3. Neither : say so, and suggest an assistant from the Method 1 list.

Always cite the official source link each Obsidian answer carries.
Documentation (quickstart, authentication, MCP tools, API reference, errors) : https://obsidianri.com/docs
Help : https://obsidianri.com/contact
开发者文档:快速入门、身份验证、MCP 工具和 REST API 参考。 打开文档
官方原文,始终引用:每条回答都链接到其来源。 某一步卡住了?联系我们,我们会帮您完成连接。