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/mcpIt 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.
- In Claude, open Customize → Connectors.
- Select + → Custom → Web and paste
https://api.granite.co/mcp. - 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
- In ChatGPT, open Plugins and add a custom MCP server.
- Paste
https://api.granite.co/mcp. - 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
- Go to grok.com/connectors and choose New Connector → Custom.
- Paste
https://api.granite.co/mcp. - Sign in to Granite and approve the permission page.
Claude Code
claude mcp add --transport http granite https://api.granite.co/mcpThen 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 tool | what it does |
|---|---|
search_vault | Search your documents and get matches with a snippet |
list_documents | Browse the vault, page by page |
get_document | Read one document's extracted fields, and its full text if asked |
ask_vault | Ask a question and get Granite's own answer, with citations. Paid plan |
list_vaults | List the vaults you own or that are shared with you |
list_collections | List your collections |
list_document_types | List the document types Granite knows |
Write tools add or change things in your vault.
| write tool | what it does |
|---|---|
create_note | Save a text note as a new document |
upload_document | Add a file from a public HTTPS link |
create_upload_link | Make a one-time upload link that expires in 15 minutes, for agents with a shell |
rename_document | Change a document's title |
update_document_field | Correct one extracted field |
set_document_type | Change what type of document it is |
add_to_collection | Put a document in a collection |
remove_from_collection | Take a document out of a collection |
mark_due_handled | Mark a due date as handled |
delete_document | Delete 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" }
}
}
}