Observed since 21 Oct, 10:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
MCP Tools for AI Cogence - Expose AI capabilities via Model Context Protocol
Expose AI Cogence capabilities as MCP (Model Context Protocol) tools that can be used in Claude Desktop and other MCP clients.
This package provides 7 AI tools that you can use in MCP-compatible applications:
rag_query - AI-powered Q&A with sourcessemantic_search - Vector similarity searchlist_chat_sessions - Session managementget_session_messages - Message historyget_analytics - Usage metricssearch_knowledge_base - Keyword searchingest_documents - Ingest documents from S3 into vector databasepip install ai-cogence-tools
Create a .env file with your backend credentials:
POSTGRES_USER=your_user
POSTGRES_PASSWORD=your_password
POSTGRES_HOST=your_host
POSTGRES_PORT=5432
POSTGRES_DB=your_db
OPENAI_API_KEY=sk-...
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):
{
"mcpServers": {
"ai-cogence-tools": {
"command": "ai-cogence-tools",
"env": {
"POSTGRES_USER": "your_user",
"POSTGRES_PASSWORD": "your_password",
"POSTGRES_HOST": "your_host",
"POSTGRES_DB": "your_db",
"OPENAI_API_KEY": "sk-..."
}
}
}
}
Restart Claude Desktop. The tools will appear in the tools menu.
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
# Connect to the server
server_params = StdioServerParameters(
command="ai-cogence-tools",
env={
"POSTGRES_USER": "your_user",
"POSTGRES_PASSWORD": "your_password",
# ... other env vars
}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
# Initialize
await session.initialize()
# List available tools
tools = await session.list_tools()
print(f"Available tools: {[tool.name for tool in tools.tools]}")
# Call a tool
result = await session.call_tool("rag_query", {
"question": "What is RAG?"
})
print(result.content)
Execute a RAG query to get AI-powered answers with sources.
Arguments:
question (required): The question to asksession_id (optional): Session ID for conversation contextPerform semantic search using vector embeddings.
Arguments:
query (required): Search querytop_k (optional, default=5): Number of resultsList all chat sessions with metadata.
Arguments:
limit (optional, default=20): Maximum sessions to returnGet all messages for a specific session.
Arguments:
session_id (required): Session IDGet usage analytics and metrics.
Arguments:
time_range (optional, default="today"): Time range (today, week, month, all)Search the knowledge base using keywords.
Arguments:
query (required): Search querylimit (optional, default=10): Maximum resultsIngest documents from S3 bucket into the vector database. Loads documents, chunks them, creates embeddings, and stores them for RAG queries.
Arguments:
force_refresh (optional, default=false): Force refresh even if documents are already ingestedWhat it does:
This MCP server connects to the AI Cogence backend and exposes its capabilities as tools. It:
MIT
For issues or questions, visit: https://github.com/ai-cogence/mcp-tools/issues
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.0 | 8 Oct 2025 | 10 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1481460ae0be6299316e4fbd31d033221f80b7a1040964d0d93bdecc2c6cb6bb