goat
Enables querying a personal fact store (facts with about and learned timestamps) through natural language over the Model Context Protocol. Supports scheduling importers to keep facts up-to-date.
README
goat
A personal assistant backend. It stores facts in Postgres or SQLite, fills them from importers on a schedule, and answers questions about them over Slack, MCP, SMS, or a terminal REPL.
Facts carry two timestamps: when the fact is about, and when goat learned it. Re-running an importer with unchanged data writes nothing.
Install
uv add "goat-butler @ git+https://github.com/phin-tech/goat"
Extras: postgres, agent (pydantic-ai), cli, mcp, slack, sms,
weather, migrations, and all for every one of them. SQLite needs none.
uv add "goat-butler[all] @ git+https://github.com/phin-tech/goat"
To work on goat itself:
git clone https://github.com/phin-tech/goat
cd goat
uv sync
uv run pytest
The suite runs against both SQLite and Postgres. Postgres comes from
docker compose up -d.
Start a shed
A shed is one deployment: a directory with a shed.py that builds a Shed, and
a .env holding the credentials. goat init writes both.
uv run goat init ~/my-shed
cd ~/my-shed
uv sync
goat migrate
goat ingest
goat repl
Defaults to SQLite, so this runs with no database server and no API key. Set a
model provider key in .env for goat brief and the REPL's ask.
.env can hold 1Password references instead of secrets. goat resolves them at
startup via the op CLI, so the file is safe to read aloud or paste:
OPENROUTER_API_KEY=op://Private/OpenRouter/credential
Commands
goat init |
scaffold a new shed |
goat migrate |
create or update the schema |
goat ingest |
run every importer |
goat brief |
compose a brief; --send delivers it |
goat facts, goat history |
inspect the store |
goat repl |
interactive session |
goat mcp |
serve the store over MCP on stdio |
What goes where
goat holds the mechanism: the store, importers, delivery, tools, the CLI. A shed
holds the values: coordinates, model, credentials, prompt, schedule.
OpenMeteoImporter lives in goat because a latitude is a constructor argument.
The latitude lives in your shed.
Docs
docs/design/fact-store.md— schema, decisions, and the ones that were reverseddocs/mcp.md— MCP server and Claude Desktop configdocs/slack.md— Slack app setupdocs/weather.md— weather sourcesskills/— Claude Code skills for setup and daily use
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.