What is MCP?
Model Context Protocol is an open standard that allows AI applications to securely access external data sources and tools. Polyvia’s MCP server exposes your knowledge base as a set of tools and resources that AI assistants can use to answer questions with citations.Installation
Prerequisites
- Node.js 18+ or Python 3.10+
- Polyvia account with API key
- MCP-compatible client (Claude Desktop, Cline, etc.)
Setup with Claude Desktop
Configure Claude Desktop
Add Polyvia to your Claude Desktop configuration file:
- macOS
- Windows
Edit
~/Library/Application Support/Claude/claude_desktop_config.json:Available Tools
The Polyvia MCP server provides the following tools:search_documents
Perform semantic search across your knowledge base.
Parameters:
query(string, required): Search querylimit(integer, optional): Maximum results to return (default: 10)filters(object, optional): Filter by document metadata
get_document
Retrieve a specific document by ID with full content.
Parameters:
document_id(string, required): Document identifier
query_knowledge_base
Query your visual knowledge base for facts and insights.
Parameters:
query(string, required): Natural language queryinclude_citations(boolean, optional): Include source citations (default: true)
Available Resources
MCP resources provide read access to your knowledge base:document://[document_id]
Access individual documents as resources. Claude can read these directly without tool calls.
Configuration Options
Environment Variables
Your Polyvia API key from Polyvia Studio
API base URL (for self-hosted instances)
Request timeout in milliseconds
Usage Examples
Asking Questions with Citations
Once configured, you can ask Claude questions that leverage your Polyvia knowledge base:“Using the Polyvia knowledge base, what are our company’s data retention policies?”Claude will automatically use the
search_documents tool to find relevant information and provide cited answers.
Comparing Data Across Documents
“Compare Apple and Microsoft’s Q4 2024 revenue based on the financial reports in Polyvia”Claude will query your visual knowledge base and return answers with citations pointing to the exact charts and tables.
Troubleshooting
MCP server not appearing in Claude
MCP server not appearing in Claude
- Verify the configuration file path is correct
- Check that the API key is valid
- Restart Claude Desktop completely
- Check Claude’s logs for error messages
Authentication errors
Authentication errors
- Ensure your API key is correctly set in the environment variables
- Verify the API key has not expired
- Check that you have an active Polyvia subscription
Slow response times
Slow response times
- Large knowledge bases may take longer to search
- Consider using filters to narrow search scope
- Increase the
POLYVIA_TIMEOUTvalue if needed
