MCP Server Documentation

Connect your AI assistants to OrbitalMCP using the Model Context Protocol. Works with Claude, Gemini, Cursor, and any MCP-compatible client.

Quick Start

The easiest way to connect - no local setup required. Just add your API key.

{
  "mcpServers": {
    "orbitalmcp": {
      "url": "https://api.orbitalmcp.com/sse",
      "transport": "sse",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Replace YOUR_API_KEY with your OrbitalMCP API key from the dashboard.

Available Tools

search_knowledge_baseRead

Search the knowledge base for relevant information. Returns the most semantically similar documents to your query, ranked by relevance score.

Parameters

NameTypeRequiredDescription
querystringYesThe question or topic to search for
limitnumberNoMax results (1-20, default: 5)
sourcestringNoFilter by source identifier

Example Usage

// In Claude, Gemini, or any MCP client:
"Search my knowledge base for authentication best practices"

// The AI will call:
search_knowledge_base({
  "query": "authentication best practices",
  "limit": 5
})

// Returns:
{
  "results": [
    {
      "content": "Always use bcrypt with cost factor 12+...",
      "source": "security-docs",
      "score": 0.92,
      "metadata": { "section": "passwords" }
    },
    // ... more results
  ]
}
add_memoryWrite

Add new content to the knowledge base. The content is automatically chunked into semantic segments, embedded using OpenAI's text-embedding-3-small model, and indexed for retrieval.

Parameters

NameTypeRequiredDescription
contentstringYesThe text content to store
sourcestringNoIdentifier for the content source
metadataobjectNoAdditional metadata (tags, dates, etc.)

Example Usage

// In Claude, Gemini, or any MCP client:
"Add this to my knowledge base: Our API uses JWT tokens 
with a 15-minute expiration for access tokens."

// The AI will call:
add_memory({
  "content": "Our API uses JWT tokens with a 15-minute expiration for access tokens.",
  "source": "api-documentation",
  "metadata": {
    "category": "authentication",
    "updated": "2026-02-02"
  }
})

// Returns:
{
  "success": true,
  "chunks": 1,
  "message": "Content stored successfully"
}

Available Resources

knowledge://stats

Get statistics about your knowledge base including document count, total chunks, storage usage, and recent activity.

Example Response

{
  "documents": 1250,
  "chunks": 8420,
  "sources": ["api-docs", "guides", "changelog"],
  "lastUpdated": "2026-02-02T10:30:00Z",
  "storageUsed": "42.5 MB"
}

CLI Examples

CClaude CLI - Querying the Knowledge Base

$ claude

You: What do we know about rate limiting in our API?

Claude: I'll search your knowledge base for information about rate limiting.

[Calling tool: search_knowledge_base]
[Arguments: {"query": "rate limiting API", "limit": 5}]

Based on your knowledge base, here's what I found about rate limiting:

1. **Rate Limits by Plan**
   - Starter: 100 requests/minute
   - Pro: 1,000 requests/minute
   - Enterprise: Custom limits

2. **Rate Limit Headers**
   Your API returns these headers:
   - X-RateLimit-Limit: Maximum requests allowed
   - X-RateLimit-Remaining: Requests left in window
   - X-RateLimit-Reset: Unix timestamp when limit resets

3. **Handling 429 Errors**
   When rate limited, implement exponential backoff...

Would you like more details on any of these topics?

GGemini CLI - Adding to Memory

$ gemini

You: I just finished implementing the new webhook system. Add this 
documentation to my knowledge base:

Webhook Events:
- user.created: Fired when a new user signs up
- user.updated: Fired when user profile changes  
- payment.completed: Fired after successful payment
- subscription.changed: Fired when plan changes

All webhooks include a signature header for verification.
Retry policy: 3 attempts with exponential backoff.

Gemini: I'll store this webhook documentation in your knowledge base.

[Calling tool: add_memory]
[Arguments: {
  "content": "Webhook Events:\n- user.created: Fired when...",
  "source": "webhook-documentation",
  "metadata": {
    "type": "api-reference",
    "category": "webhooks",
    "author": "engineering"
  }
}]

Done! I've added the webhook documentation to your OrbitalMCP knowledge 
base. It's now indexed and searchable. The content was split into 2 
semantic chunks for optimal retrieval.

Would you like me to also add example payloads for each event type?

Transport Options

SSE (Server-Sent Events)

Recommended for most use cases. Connect directly to our hosted service.

  • No local setup required
  • Automatic updates and scaling
  • Works across firewall/NAT
GET https://api.orbitalmcp.com/sse
POST https://api.orbitalmcp.com/messages

Stdio (Standard I/O)

For self-hosted deployments or air-gapped environments.

  • Full data sovereignty
  • Works offline
  • Custom configurations
npx tsx src/mcp-server.ts

Troubleshooting

Connection refused or timeout

Ensure your API key is valid and has the correct permissions. Check that the Authorization header is properly formatted as 'Bearer YOUR_API_KEY'.

Tools not appearing in my AI client

Restart your MCP client after adding the configuration. Some clients require a full restart to detect new MCP servers.

Search returns no results

Make sure you've ingested content first. Use the add_memory tool or REST API to populate your knowledge base before searching.

Rate limiting errors

The MCP server respects the same rate limits as the REST API. If you're hitting limits, consider upgrading your plan or implementing request batching.