# Connect ChatGPT to your Markdown notes

> Add mdbase as a custom MCP server in ChatGPT, approve one collection and ask for the paths and contents of matching Markdown notes.

Source: https://mdbase.dev/guides/chatgpt-markdown/

You need a ChatGPT workspace that allows custom MCP servers, an mdbase account and a synced collection. An Obsidian vault can be that collection. Choose a folder whose entire contents you’re comfortable making available to ChatGPT.

## 1\. Sync the folder that holds your notes

Use one sync service for a given folder. If you already sync this vault, decide which service will own that job before you turn on mdbase sync. The [mdbase plugin for Obsidian](https://github.com/mdbase-dev/mdbase-obsidian#sync) can sync the vault in place of the desktop app.

In the [mdbase Connect desktop app](https://mdbase.dev/downloads/), open **Collections → Add existing** and select the folder. In the folder’s actions menu, choose **Turn on sync**. If the folder already syncs with mdbase, use that collection. Write down its name. You’ll select it again during approval.

**Cloud copy** makes a readable copy available while your computer is off. For **Private**, select end-to-end encryption under **Advanced**. A computer serving the Private collection must be online when ChatGPT requests a note.

*Image: The desktop app explains the availability of the Field research collection when end-to-end encryption is selected.*

## 2\. Add the remote MCP server

In ChatGPT, open **Plugins**. Choose the plus button and **Add custom MCP server**. Give the plugin the name `mdbase` and a description such as “Read my field notes.” Under **Connection**, select the public endpoint option and enter:

```
https://mcp.mdbase.dev/mcp
```

Choose OAuth authentication. Review the warning, select **I understand and want to continue**, then **Create as a plugin**. Check the discovered tools for `list_connections`, `query_records` and `read_record`. Install the resulting plugin. If the custom-server option is missing, check your workspace’s policy with its owner. [OpenAI’s connection instructions](https://developers.openai.com/plugins/deploy/connect-chatgpt#add-the-mcp-server)

## 3\. Choose the collection and permissions

When ChatGPT asks you to connect, sign in to mdbase. Check the collection name. The approval screen identifies the service as **mdbase** at `https://mcp.mdbase.dev`. For searches and quotations, keep read access and clear the optional create, edit, delete and definition permissions. Choose **Allow access**.

*Image: The mdbase approval screen shows the required read permission and the optional write permissions cleared.*

**Approve read access in Connect**0:06

Review what the connector can do in the Field research collection. Silent recording with on-screen captions and sample data.

Text description of the recording

1.  The review screen identifies the mdbase connector and Field research.
2.  Create and edit permissions are cleared. Read access stays required.
3.  The file scope covers the visible folders in this collection.
4.  Allow access confirms the selection. Connect shows the approved collection.

[Download MP4](https://mdbase.dev/videos/mcp-read.mp4)

## 4\. Find a note by its properties

Save the following file in your synced folder. In an Obsidian vault, `status` is a property of the note. Its value gives ChatGPT a field it can search even when the file name contains no mention of the count.

```markdown
---
title: East bank survey
status: awaiting-count
---

Return at low tide to count the nesting pairs.
```

In a new ChatGPT conversation, type `@` and select **mdbase**. Replace “Field research” with your collection name:

> In Field research, find notes where the status is awaiting-count. Give me their relative paths. Read surveys/east-bank.md and quote its field instruction.

Check for `surveys/east-bank.md` and the instruction about low tide. You can open the same file on disk and compare the text.

*Image: The local Markdown file, read with the mdbase CLI, contains the same status and field instruction.*

## Access after the chat

Closing the chat leaves the collection approval in place. [Revoke the application grant in Connect](https://mdbase.dev/apps/mcp/collections/#revoke) ·  to stop further reads. A Private collection protects the synced copy. The MCP gateway and ChatGPT still receive the content you ask them to read. See [MCP data handling](https://mdbase.dev/apps/mcp/data-handling/) ·  or [connect Claude to the same vault](https://mdbase.dev/guides/claude-obsidian/).
