jazz_agent
Enables querying a permanent taste log of NYC jazz club playlists and recording personal feedback on liked acts via natural language to Claude.
README
Jazz Agent
A single-user tool that reads the schedules of NYC jazz clubs, works out who is playing, and builds a Spotify playlist per club per week so the music arrives without being asked for. It keeps a permanent log of everything it has ever surfaced, and exposes that log to Claude over MCP so you can ask about it and record what you liked while listening.
Two halves, deliberately separate:
- A daily batch pipeline (cron) that scrapes, matches, and reconciles playlists.
- An always-on MCP server that answers questions about the log and records feedback.
Why it is built this way
Three findings drove the design, and all three contradict the obvious approach:
- Spotify deleted the endpoints you would reach for. The November 2024 API changes
removed
related-artists,recommendations,audio-features, andaudio-analysisfor any app registered afterwards. There is no acoustic data and no artist-similarity data available. Artist connections come from MusicBrainz and from the club listings themselves; "style" comes from genre tags and your own notes. - CSS selectors are the wrong tool for six unmaintained websites. Extraction is done by an LLM over page text, so adding a club is a row in a table, and a venue redesign does not break anything.
- Weekly playlists, not nightly. One playlist per club per booking week (Tuesday–Monday) removes an entire class of problem: residencies spanning several nights, the same act playing two sets, and playlists expiring mid-run. The daily run becomes an idempotent convergence loop rather than a creation event.
Documentation
| Document | What it is for |
|---|---|
| docs/ARCHITECTURE.md | The technical specification. Every issue references a section of it. |
| docs/DECISIONS.md | ADRs. Why each choice was made, what was rejected, and the evidence. |
| docs/DATA_MODEL.md | Schema, indexes, and the queries that make the taste graph useful. |
| docs/claude-project-instructions.md | Paste into a Claude Project. Runtime contract for the chatbot. |
| docs/SERVER_SETUP.md | Turning a freshly provisioned cloud VPS into a box that's ready to run this. Start here. |
| docs/SETUP.md | Registering Spotify and Google OAuth credentials, and running the server. |
| docs/RUNBOOK.md | Full deployment reference, backups, and the failure playbook -- how to rebuild the host from scratch. |
| AGENTS.md | Conventions and invariants for the agent implementing this. |
| docs/original-prd.md | The original PRD, verbatim. Superseded in places; see ADRs. |
The PRD is kept unedited as the record of original intent. Where the architecture departs from it, the ADR says so explicitly and names the PRD section it supersedes.
Status
All v1 milestone issues are implemented and tested. Two things remain before this is
actually running in production, both requiring a human: registering a real Google OAuth
client and a real Spotify Developer app (see docs/RUNBOOK.md sections 4-5),
and deploying to a real VPS. The build was tracked as issues under the v1 milestone, each
with acceptance criteria and explicit Blocked by links -- see the closed issues for what
was built and why.
Stack
Python 3.12 with uv, Postgres 17 (tsvector, pg_trgm, pgvector), httpx with
Playwright as a per-club opt-in, Anthropic Claude Haiku for extraction and adjudication,
FastMCP with Google-delegated OAuth, Docker Compose on a small Linux VPS.
Licence
MIT.
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.
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.
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.
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.
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.
E2B
Using MCP to run code via e2b.