evidence-mcp
Enables AI assistants to create Evidence reports and dashboards by providing tools to query database schema, read documentation, edit pages, and debug code.
README
Evidence MCP Server
An MCP (Model Context Protocol) server that provides tools for AI assistants to help users create Evidence reports and dashboards.
Installation
# Clone and install
git clone https://github.com/jaho5/evidence-mcp.git
cd evidence-mcp
uv sync
Usage
# Run the MCP server
uv run evidence-mcp
# With custom Evidence project path
EVIDENCE_MCP_EVIDENCE_PROJECT_PATH=/path/to/project uv run evidence-mcp
Configuration
Environment variables:
| Variable | Default | Description |
|---|---|---|
EVIDENCE_MCP_EVIDENCE_DEV_URL |
http://localhost:3000 |
Evidence dev server URL |
EVIDENCE_MCP_EVIDENCE_PROJECT_PATH |
- | Path to Evidence project |
EVIDENCE_MCP_TRANSPORT |
stdio |
Transport mode: stdio, sse |
Tools
get_metadata
Returns database schema from Evidence's DuckDB connection.
read_docs
Retrieves Evidence documentation using hierarchical lookup.
edit_page
Proposes changes to the current Evidence markdown page.
debug_code
Analyzes validation errors and suggests fixes.
Claude Code Setup
Add to your Claude Code MCP settings (~/.claude.json):
{
"mcpServers": {
"evidence-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/evidence-mcp", "evidence-mcp"],
"env": {
"EVIDENCE_MCP_EVIDENCE_PROJECT_PATH": "/path/to/your/evidence/project"
}
}
}
}
Or add via CLI:
claude mcp add evidence-mcp -- uv run --directory /path/to/evidence-mcp evidence-mcp
To verify installation:
claude mcp list
Claude Desktop Setup
Add to Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"evidence-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/evidence-mcp", "evidence-mcp"],
"env": {
"EVIDENCE_MCP_EVIDENCE_PROJECT_PATH": "/path/to/your/evidence/project"
}
}
}
}
Programmatic Usage (MCP Client)
import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def main():
server_params = StdioServerParameters(
command="uv",
args=["run", "--directory", "/path/to/evidence-mcp", "evidence-mcp"],
env={
"EVIDENCE_MCP_EVIDENCE_PROJECT_PATH": "/path/to/your/evidence/project"
}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
# Initialize the connection
await session.initialize()
# List available tools
tools = await session.list_tools()
print("Available tools:", [t.name for t in tools.tools])
# Call get_metadata
result = await session.call_tool("get_metadata", arguments={})
print("Metadata:", result.content)
# Call read_docs
result = await session.call_tool("read_docs", arguments={
"doc_type": "charts",
"component": "LineChart"
})
print("Docs:", result.content)
asyncio.run(main())
With OpenAI Agents SDK
First, run the server in SSE mode:
EVIDENCE_MCP_TRANSPORT=sse \
EVIDENCE_MCP_EVIDENCE_PROJECT_PATH=/path/to/your/evidence/project \
uv run evidence-mcp
Then use HostedMCPTool to connect:
from agents import Agent, HostedMCPTool
agent = Agent(
name="Evidence Assistant",
instructions="Help users create Evidence reports and dashboards.",
tools=[
HostedMCPTool(
tool_config={
"type": "mcp",
"server_label": "evidence",
"server_url": "http://localhost:8000/sse",
"require_approval": "never",
}
)
],
)
Development
# Install with dev dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Run tests with coverage
uv run pytest --cov=evidence_mcp
# Lint
uv run ruff check
# Format
uv run ruff format
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.