Model Context Protocol · Streamable HTTP · read-only

Connect AI agents through MCP

One URL gives an assistant the records its user chose to share: exact fields, search and cited answers, using the same permissions and approved releases as the REST API.

Quickstart

Claude (web and desktop)

  1. Settings → Connectors → Add custom connector.
  2. Paste https://knowledgebase.org/mcp/private.
  3. Sign in to KnowledgeBase.org and choose the records and details Claude may read.

ChatGPT

  1. Settings → Connectors → Create (developer mode may be required).
  2. Paste https://knowledgebase.org/mcp/private and choose OAuth.
  3. Approve on the KnowledgeBase.org permission screen.

Claude Code

# Sign in with OAuth (recommended)
claude mcp add --transport http knowledgebase https://knowledgebase.org/mcp/private

# Or with an API key for records you own
claude mcp add --transport http knowledgebase https://knowledgebase.org/mcp --header "Authorization: Bearer $KB_API_KEY"

Any client with a JSON config

{
  "mcpServers": {
    "knowledgebase": {
      "type": "http",
      "url": "https://knowledgebase.org/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Leave out headers to try the fictional sandbox (sample-dental, sample-person, sample-kettle, sample-cafe) with no key.

Choosing how to authenticate

/mcp/private with OAuth

For assistants your users add themselves. Answers 401 with RFC 9728 metadata; supports dynamic client registration (RFC 7591) and PKCE. The connection appears in the user's Connected Apps.

/mcp with an API key

For your own agents reading records you own. The key's scope decides which records; keys always read their records in full.

/mcp without credentials

Sandbox only, for trying the tools. Customer records are never reachable or discoverable this way.

Tools

All tools are read-only (readOnlyHint: true). Permissions apply before retrieval and before any model call, so snippets, citations, summaries and metadata never go beyond the grant.

list_knowledgebasesThe records these credentials may read, with their type.
find_knowledgebasesThe same list filtered by words. Without credentials, only the fictional sandbox.
get_fieldsExact approved values by field, with the context each applies in and its revision. Use for forms and facts.
searchRanked passages with release and revision. No AI.
answerA cited answer, with insufficientEvidence and conflicts.
get_knowledge_baseEvery granted detail in the current or a pinned release.
network_search · network_answerAcross everything these credentials may read, or one collection, with disagreements listed.
list_collections · list_changesYour collections, and new releases since your last cursor.

Teach your agent to handle uncertainty

Missing evidence

When insufficientEvidence is true, or get_fields lists a key in missing, say the KnowledgeBase doesn't cover it. Don't fill the gap from general knowledge.

Conflicting sources

When conflicts is not empty, report each position with its source and let the person decide.

Stale results

Citations carry the release and publish date. If a value looks old for a time-sensitive question (holiday hours, prices), say when it was approved.

Actions

Knowledge describes; it never authorizes. Submitting an application, booking a table or issuing a refund goes through the product's own authorization and confirmation flow.

Examples

Personal assistant

get_fields(slug, "communication_style,decision_style,pref_work") before drafting, so replies match how the user likes to work.

Receptionist

get_fields(slug, "hours,holiday_hours") for the caller's location, then answer("Do you take walk-ins?") with citations for the call log.

Support agent

get_fields(slug, "warranty,compatibility") and match the value whose context names the customer's model.

Troubleshooting

The client never asks me to sign inUse https://knowledgebase.org/mcp/private. The plain /mcp address never asks, because it also serves the no-key sandbox.
401 with error="invalid_token"The token expired, was revoked, or the user disconnected the assistant. Reconnect from the client; remove any cached content.
A record I expect is missingIt wasn't ticked on the permission screen, or only some of its details were. The owner can reconnect with more, from Connected Apps.
get_fields returns nothingThe record has no approved values for those keys, or they weren't granted. Check missing in the response.
Opening the URL in a browser shows a pageThat's expected: the address is for assistants. Paste it into your client instead.