Connect AI agents to your KnowSync knowledge base using the Model Context Protocol (MCP). Set up API keys, configure tools, and integrate with Claude, Cursor, and other AI assistants.
KnowSync's Model Context Protocol (MCP) server enables AI agents to access your organization's knowledge base in real-time. Connect Claude, Cursor, VS Code, and other AI tools to search, retrieve, and add content to your knowledge base seamlessly.
The Model Context Protocol (MCP) is an open standard developed by Anthropic that allows AI applications to securely access external data sources. KnowSync's MCP server provides 2 unified tools with intelligent caching, AI-powered query optimization, and session management that enable AI agents to interact with your knowledge base through a standardized JSON-RPC 2.0 API.
2 Unified Tools:
Enterprise Security:
KnowSync provides 2 powerful unified MCP tools that combine the functionality of our previous 5-tool system:
knowsync_query:
knowsync_manage:
Tool-Level Permissions: Each API key can be granted access to specific tools based on your needs:
Rate Limiting: Configure request limits based on usage patterns:
Prerequisites:
Configuration:
https://www.knowsync.ai/api/mcp{
"mcpServers": {
"knowsync": {
"url": "https://www.knowsync.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"X-User-Id": "your_user_id_here"
}
}
}
}
Setup Instructions:
Cmd/Ctrl + ,){
"mcpServers": {
"knowsync": {
"url": "https://www.knowsync.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"X-User-Id": "your_user_id_here"
}
}
}
}
Using MCP Extension:
{
"mcp.servers": {
"knowsync": {
"url": "https://www.knowsync.ai/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY",
"X-User-Id": "your_user_id_here"
}
}
}
}
Prerequisites:
npm install -g @anthropic-ai/claude-code or follow official installation guide)Configuration:
claude mcp add --transport http knowsync https://www.knowsync.ai/api/mcp \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "X-User-Id: your_user_id_here"
claude mcp add --transport http knowsync https://www.knowsync.ai/api/mcp \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "X-User-Email: your_user_email_here"
claude mcp list
This should show the knowsync server in the list.
Note: Ensure your API key has the necessary tool permissions. Replace placeholders with actual values.
Required Headers: All MCP requests must include user identification for proper attribution:
Why It's Required:
Use Case: AI agent helps during code reviews by accessing your team's coding standards and best practices.
# Query for coding standards
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: your_user_id" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "knowsync_query",
"arguments": {
"query": "What are our React component naming conventions and prop validation requirements?",
"mode": "retrieve",
"limit": 4
}
}
}'
AI Agent Integration: Configure Claude Code to use this for instant access to your team's standards during development.
Use Case: Automatically populate knowledge base with latest framework documentation for new hires.
# Discover and add latest documentation
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: your_user_id" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "knowsync_manage",
"arguments": {
"operation": "discover",
"query": "Next.js 15 App Router migration guide 2024",
"options": {
"maxResults": 8,
"maxUrls": 4,
"relevanceThreshold": 0.8
}
}
}
}'
Expected Response with API Consumption:
{
"success": true,
"documentsCreated": 4,
"apiUnitsConsumed": 8,
"message": "Successfully discovered and processed 4 documents into knowledge base (8 API units consumed)"
}
Note: 4 URLs × 2 units each (1 crawl + 1 processing) = 8 total API units
Use Case: Support agents get instant answers from product documentation while helping customers.
# Search for troubleshooting information
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: support_agent_123" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "knowsync_query",
"arguments": {
"query": "Customer getting 401 errors during payment processing, what are the common causes and solutions?",
"mode": "auto",
"limit": 6
}
}
}'
Benefits: 60-85% faster response time due to caching, AI-enhanced relevance ranking shows most helpful solutions first.
Use Case: Product managers research competitor features and industry trends.
# Discover latest competitive analysis
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: product_manager" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "knowsync_manage",
"arguments": {
"operation": "discover",
"query": "SaaS pricing strategy trends 2024 freemium models",
"options": {
"maxResults": 10,
"maxUrls": 5,
"relevanceThreshold": 0.7
}
}
}
}'
Use Case: Quickly find existing feature specifications and requirements during planning.
# Search existing requirements
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: product_manager" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "knowsync_query",
"arguments": {
"query": "user authentication flow requirements two-factor authentication implementation",
"mode": "retrieve",
"filters": {
"contentTypes": ["documents"],
"documentIds": ["spec_docs_collection"]
}
}
}
}'
Use Case: Sales team accesses product information and competitive positioning during customer calls.
# Quick product feature lookup
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: sales_rep" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "knowsync_query",
"arguments": {
"query": "What security certifications do we have? SOC 2 compliance status enterprise security features",
"mode": "search",
"limit": 5
}
}
}'
Use Case: Identify what documentation exists and what needs to be created.
# Audit existing documentation
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: content_manager" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "knowsync_manage",
"arguments": {
"operation": "list",
"filters": {
"limit": 50,
"status": "ready",
"contentType": "markdown"
}
}
}
}'
Use Case: Keep knowledge base current with latest industry standards and frameworks.
# Add specific technical documentation
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: tech_writer" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 8,
"method": "tools/call",
"params": {
"name": "knowsync_manage",
"arguments": {
"operation": "crawl",
"url": "https://nextjs.org/docs/app/building-your-application/authentication",
"options": {
"respectRobots": true,
"timeout": 45,
"followLinks": false
}
}
}
}'
Traditional documentation systems make you hunt for information. KnowSync MCP makes information come to you:
Before KnowSync MCP:
With KnowSync MCP:
# Traditional approach: Manual search in documentation
# Time: 2-5 minutes per question
# Result: May not find the right answer
# KnowSync MCP approach: AI agent instantly knows
# Time: 2-5 seconds per question
# Result: Contextual, accurate, source-cited answers
Example: A developer asking "How do we handle authentication?" gets not just the auth docs, but specifically the sections relevant to their current project context, with follow-up suggestions, in under 2 seconds.
The AI remembers context across queries in the same session, enabling natural follow-up questions:
# First query
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: developer_session_123" \
-d '{
"params": {
"name": "knowsync_query",
"arguments": {
"query": "How do we handle user authentication in our React apps?"
}
}
}'
# Follow-up query (AI maintains context)
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: developer_session_123" \
-d '{
"params": {
"name": "knowsync_query",
"arguments": {
"query": "What about logout and session management for that?"
}
}
}'
Demonstrate the power of intelligent caching:
# First time query (full processing)
time curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: your_user_id" \
-d '{
"params": {
"name": "knowsync_query",
"arguments": {
"query": "deployment pipeline configuration Docker containerization"
}
}
}'
# Response time: ~800ms
# Similar query (cached response)
time curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: your_user_id" \
-d '{
"params": {
"name": "knowsync_query",
"arguments": {
"query": "how to configure deployment pipelines with Docker containers"
}
}
}'
# Response time: ~120ms (85% faster!)
| Scenario | Traditional Method | With KnowSync MCP | Time Saved | |----------|-------------------|-------------------|------------| | Code Review | Search through docs manually | AI agent instantly cites coding standards | 90% faster | | Customer Support | Look up troubleshooting guides | AI provides exact solution steps | 85% faster | | Onboarding | Send links to documentation | AI answers specific questions contextually | 95% faster | | Product Planning | Research competitor features manually | AI discovers and analyzes latest trends | 80% faster |
Week 1: Your team saves 2-3 hours per day on documentation searches Month 1: 40-60 hours saved per team member Year 1: Each team member gains back 2-3 weeks of productive time
Development Team: "Instead of spending 30 minutes searching for our API patterns, Claude Code instantly shows me exactly what I need. I can focus on building instead of hunting."
Support Team: "Customer questions that used to take 10 minutes to research now get answered in 30 seconds. Our response quality improved while our response time dropped dramatically."
Product Team: "Research that used to take hours now happens in minutes. We can analyze competitive features, find requirements, and make decisions faster than ever."
The power isn't in the technology - it's in how it transforms your daily work from searching to creating.
API Key Management:
Usage Analytics:
Settings Configuration:
Individual Analytics:
Request Attribution: All MCP requests require user identification headers:
API Key Security:
Permission Model:
Advanced Features:
Data Protection:
Connection Problems:
Authentication Errors:
Rate Limiting:
Tool Permission Errors:
Health Check:
# Test server connectivity
curl https://www.knowsync.ai/api/mcp
# Expected response includes server info and available tools
Tool Testing:
# Test initialize method
curl -X POST https://www.knowsync.ai/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-User-Id: your_user_id" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {"tools": true},
"clientInfo": {"name": "test-client", "version": "1.0.0"}
}
}'
KnowSync is actively developing additional MCP tools planned for 2025:
Phase 1 (Q1 2025):
Phase 2 (Q2 2025):
See our MCP Tools Roadmap for complete details.
Documentation:
Support Channels:
Custom Integration: Enterprise customers can work with our team for custom MCP tool development and advanced integration patterns.
Start by creating your first API key in the MCP dashboard, then test the connection with a simple search query. Remember to include user identification headers for proper team attribution.