Developers · MCP

Connect Granite to Claude, ChatGPT, Grok or Claude Code.

Connect your vault from your AI app with one URL and a Granite sign-in. Browse selected document details in ChatGPT, or search and manage your vault in Claude, Grok and other supported clients.

The connector URL

https://api.granite.co/mcp

It speaks Streamable HTTP and signs you in with OAuth 2.0. The first time an app connects, Granite opens a permission page that lists what the app will be able to do. Approve it and you're done.

Claude

Set up the custom connector in Claude on the web or in the desktop app.

  1. In Claude, open Customize → Connectors.
  2. Select + → Custom → Web and paste https://api.granite.co/mcp.
  3. Connect, then sign in to Granite and approve the permission page.

A Granite plugin in Claude's directory is coming soon. Once it's listed, you can add it from there instead.

ChatGPT

  1. In ChatGPT, open Plugins and add a custom MCP server.
  2. Paste https://api.granite.co/mcp.
  3. Sign in to Granite and approve the permission page.

The ChatGPT connection is read-only. It can find supported document types and show selected details, such as a policy date. Open the document in Granite to see the full record or make changes.

Grok

  1. Go to grok.com/connectors and choose New Connector → Custom.
  2. Paste https://api.granite.co/mcp.
  3. Sign in to Granite and approve the permission page.

Claude Code

claude mcp add --transport http granite https://api.granite.co/mcp

Then run /mcp inside Claude Code and pick granite to sign in.

Cursor and VS Code

Add Granite to Cursor or add Granite to VS Code, then sign in to Granite when the editor asks. The manifests live in the open-source granite-connectors repo.

Clients that can't sign in

Some clients can only send a fixed header. Create a personal access token under Settings → Apps & API → Access tokens with the scopes you want (documents:read, documents:write, vault:ask) and send it as a bearer header. Access tokens are part of Granite Paid.

{
  "mcpServers": {
    "granite": {
      "url": "https://api.granite.co/mcp",
      "headers": { "Authorization": "Bearer gra_live_your_token_here" }
    }
  }
}

What it can do

These tables show the full connector. ChatGPT offers the document search, list, detail, and type tools with limited output.

read toolwhat it does
search_vaultSearch your documents and get matches with a snippet
list_documentsBrowse the vault, page by page
get_documentRead one document's extracted fields, and its full text if asked
ask_vaultAsk a question and get Granite's own answer, with citations. Paid plan
list_vaultsList the vaults you own or that are shared with you
list_collectionsList your collections
list_document_typesList the document types Granite knows

Write tools add or change things in your vault.

write toolwhat it does
create_noteSave a text note as a new document
upload_documentAdd a file from a public HTTPS link
create_upload_linkMake a one-time upload link that expires in 15 minutes, for agents with a shell
rename_documentChange a document's title
update_document_fieldCorrect one extracted field
set_document_typeChange what type of document it is
add_to_collectionPut a document in a collection
remove_from_collectionTake a document out of a collection
mark_due_handledMark a due date as handled
delete_documentDelete a document for good

Documents added from an AI app are stored and processed exactly like any other upload: read, classified, extracted and made searchable.

Plans

Free accounts can connect, search, read, and add documents up to the 25-document Free limit. Asking questions with ask_vault needs Granite Paid.

The HTTP API at api.granite.co/v1 hasn't changed. It's still read-only and part of Granite Paid.

Shared vaults

The connector follows the same rules as the app. If you're a viewer on a shared vault, the AI app can only read it. If you're a collaborator, it can add and edit documents, and delete only the ones you added.

Staying in control

Deleting a document is permanent. Your AI app controls whether it asks before running delete_document.

Every tool call is recorded in your audit log under Settings → Audit log. You can disconnect any app at any time under Settings → Connected apps. The sign-in tokens an app gets expire after an hour, and Granite stores them hashed.

The AI app receives the data its tools return, under that provider's own terms. ChatGPT receives selected structured details from supported documents. More in the privacy policy.

Local option: @graniteco/mcp

The older local server still works. It runs on your machine over stdio with npx and reads a personal access token from the GRANITE_API_KEY environment variable. It wraps the read-only HTTP API, so it has the four read tools (search_vault, list_documents, get_document, ask_vault) and no write tools. Use the hosted connector unless you need a local process.

{
  "mcpServers": {
    "granite": {
      "command": "npx",
      "args": ["-y", "@graniteco/mcp"],
      "env": { "GRANITE_API_KEY": "gra_live_your_token_here" }
    }
  }
}