hmis-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
hmis-mcp
An MCP server that lets an AI agent answer questions about an agency's HMIS data (how many people a shelter served, where they exited to, how full the beds were) while only ever seeing aggregate numbers. The agent cannot retrieve a name, an SSN, a birth date, a client ID, or a row about one person, because the server has no tool that returns them and small counts are suppressed.
It reads the HUD HMIS CSV export, which every HMIS vendor is required to produce, so it is not tied to one vendor or one state: WellSky Community Services, Bitfocus Clarity, ClientTrack and the rest all export it.
Install
There are two routes. If you use Claude Desktop and would rather not touch a
terminal, use the bundle. For every other agent, or if you are comfortable with
a command line, use uvx.
Claude Desktop, no terminal
Download hmis-mcp.mcpb.
Open it with Claude Desktop. Double-clicking the file should do it; if not, open Claude Desktop's settings, go to Extensions, and install it from there.
When asked, choose your HMIS export: the zip file your HMIS produced for the HUD CSV export. You can also set the smallest count to show and a folder for a query log.
Claude Desktop fetches Python and everything else the first time it starts the extension, which takes a minute and needs an internet connection. The export itself stays on your computer.
Every other agent: uvx
The only thing you install yourself is uv, a small tool that fetches Python and this server when they are needed. There is nothing to clone and no Python to set up. This works the same on Windows, macOS and Linux.
On Windows, in PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"On macOS or Linux:
curl -LsSf https://astral.sh/uv/install.sh | shOpen a new terminal afterwards so the uvx command is found. Then make a
synthetic export and check that the server can read it:
uvx hmis-mcp sample hmis-sampleuvx hmis-mcp check --export hmis-samplecheck prints the export's layout, its date range and a few totals, then OK.
It never prints client data. For real data, run your HMIS's HUD CSV export for
your agency's projects and give check the zip or the folder instead.
uvx downloads the server from PyPI the first time and keeps a copy. To move
to a newer release later, run it once as uvx hmis-mcp@latest.
If you are an AI agent installing this for someone
Run
uvx --version. If it is missing, ask before installing uv with the command above for their operating system.Ask where their HMIS CSV export is (a zip or a folder). Do not open, list, print or read the export yourself. It holds client names, birth dates and Social Security numbers, and keeping those out of your context is the point of this server. Only pass its path along.
Run the
checkcommand above with that path. It prints counts only. If it fails, show the person the message and stop.Add the server to your own MCP configuration using the block under "Agents that run a local command". Use absolute paths. In JSON on Windows, write paths with forward slashes (
C:/Users/name/export.zip).If the app reports that
uvxcan't be found, which happens with desktop apps that don't inherit the terminal's PATH, replace"uvx"with its full path:where uvxon Windows,which uvxelsewhere.Reload your MCP servers and call
describe_datasetto confirm it answers.Leave the HTTP transport and tunnels alone unless the person asks for them.
Related MCP server: genpark-agent-synthetic-data-differential-privacy-guard-skill
Getting the export
The file this reads is the HUD CSV export, sometimes called the HMIS CSV export: a zip of about two dozen CSV files in a layout HUD specifies. Every HMIS can produce one, because federal reporting depends on it.
Ask for the hashed version if your system offers it. That is the file communities upload to Eva, HUD's data quality tool, and in it names and Social Security numbers are replaced by hashes. This server never reads those columns in either version, so you lose nothing, and the copy sitting on your computer holds less.
Where it lives depends on the vendor, and menus move, so treat these as starting points:
WellSky Community Services (ServicePoint): on the Reports tab, "Hashed HMIS CSV", then Start New Export, then Download Results.
Bitfocus Clarity: Reports, then the Report Library, then "[HUDX-111] HUD CSV / XML Program Data Export" under HUD Reports, with the option to hash identifying data switched on.
Eccovia ClientTrack: the HMIS CSV Export among the HMIS export tools.
Who may run it is a local decision. Some communities let any agency user with reporting access pull it; others keep it with administrators. If you can't find it, ask your HMIS lead for "the hashed HMIS CSV export, the one used for Eva", covering your agency's projects and the dates you want to report on.
Three things to know once you have it:
Leave the zip exactly as it was downloaded. Opening a CSV in Excel and saving it can change dates and strip leading zeros.
The export only covers the date range and projects chosen when it was run, so that is the most this server can report on. Run a new export to see newer data.
It is still client-level data even when hashed, with birth dates and client IDs in it. Keep it wherever your agency keeps other HMIS files.
Supported export formats
HUD has revised the CSV format three times since October 2021, and all three revisions load:
Revision | In effect from | What differs |
FY2026 | October 2025 |
|
FY2024 | October 2023 | Gender as |
FY2022 | October 2021 | Gender as |
The revision is read from the Client.csv header, not from the CSVVersion a
vendor wrote in Export.csv, and describe_dataset reports it. If the two
disagree the server says so. FY2022 data is translated into the current code
lists using the same crosswalk as HUD Data Lab's FY2022-to-FY2024 conversion,
so a question gets the same answer whichever revision the export is in. Two
things can't be recovered from an FY2022 export: which kind of rental subsidy
someone had (seven old codes became one), and Middle Eastern or North African
as a race, which FY2022 didn't collect.
FY2020 and earlier exports are refused with a message saying so. If detection
fails on an export you know is supported, pass --csv-version 2022, 2024 or
2026.
Connecting agents
There are two ways in, and which one you need depends on whether the agent can start a program on your computer.
Agents that run a local command (stdio)
Claude Code, Claude Desktop, Codex CLI, Gemini CLI, Cursor and VS Code all launch the server themselves. Nothing listens on the network. They all want the same two facts, a command and its arguments, and differ only in which file holds them:
{
"mcpServers": {
"hmis": {
"command": "uvx",
"args": ["hmis-mcp", "--export", "/absolute/path/to/export.zip"]
}
}
}Agent | Where it goes |
Claude Desktop |
|
Claude Code |
|
Cursor |
|
Gemini CLI |
|
VS Code |
|
Codex CLI |
|
These file locations change between releases. If one doesn't work, check that agent's MCP documentation; the command and args stay the same.
Agents that connect to a URL (HTTP)
ChatGPT cannot start a local program. Its servers call yours, so the server
needs a public https:// address. The same goes for the OpenAI Responses API
and most hosted agent platforms.
Make a secret. This writes it to a file in your home folder, readable only by you on macOS and Linux, and by whoever can read your user profile on Windows:
uvx hmis-mcp secret --out ~/.hmis-mcp-secretGive the server a public address. The server itself stays bound to
127.0.0.1; a tunnel carries HTTPS traffic to it. With Cloudflare's:
cloudflared tunnel --url http://127.0.0.1:8000That prints an address like https://something.trycloudflare.com. Start the
server with it:
uvx hmis-mcp --export /absolute/path/to/export.zip --transport http --public-url https://something.trycloudflare.com --secret-file ~/.hmis-mcp-secretThe MCP endpoint is the public address plus /mcp.
ChatGPT. Add a custom MCP server in ChatGPT's settings (OpenAI has moved
this menu more than once; look under connectors, apps or plugins), give it the
/mcp URL, and choose OAuth. ChatGPT registers itself and sends your browser
to this server's approval page. Paste the secret there. Tokens refresh on their
own after that, and approvals survive a restart.
Agents that send headers. Use the secret as a bearer token:
Authorization: Bearer <secret>. For the OpenAI Responses API that is an mcp
tool with server_url set to the /mcp URL and authorization set to the
secret.
The server will not start on HTTP without a secret unless you pass --no-auth,
and it accepts --no-auth only on a loopback address with no public URL.
Before you expose this, understand what changes. Over stdio, aggregates go to whichever model your local agent uses. Over HTTP with ChatGPT, they go to OpenAI, and anyone who obtains the secret can query your agency's statistics from anywhere. No client-level data is reachable either way, but aggregate numbers about a small shelter are still your agency's data. Stop the tunnel when you are not using it.
Options
Option | Env var | Default | |
|
| required | Export directory or zip |
|
| 11 | Smallest client count released. Floor is 5. |
|
| detected | Force the HUD CSV revision: 2022, 2024 or 2026 |
|
| off | One JSON line per query: the request and how many cells were released or suppressed. No results. |
|
|
|
|
|
| Where the HTTP transport listens | |
|
| The | |
|
| Access secret, at least 24 characters | |
|
|
| Approved clients and token hashes |
Tools
describe_dataset: export period, privacy rules, and every valid measure, cohort, dimension and dimension value.list_projects: project names, types, organizations, bed inventory.query_aggregate: counts of clients, enrollments or households, and mean or median length of stay, broken down by up to three dimensions, with filters, a cohort (active, entered, exited) and a reporting period.bed_utilization: monthly bed nights and utilization per project.
Dimensions cover project, organization, project type, CoC, age group, race/ethnicity, sex (FY2026) or gender (FY2024), veteran status, household type, relationship to head of household, disabling condition, DV survivor status, prior living situation, exit destination, length of stay, income at entry, and entry/exit month, quarter and year.
The agent picks from that vocabulary. It never writes SQL.
How the privacy protection works
Threat model first, because it determines what the rest is worth. The person running this server already holds the export and is authorized to see it. The thing being protected against is client data reaching a model provider, a chat transcript, or a generated report. The server is not built to stop a determined insider with unlimited queries from learning something about a client; that person can open the CSV.
Within that model:
Names, SSNs and free-text fields are never read into the database. Each CSV has a column allowlist and those columns are not on it.
Birth dates and a per-client index stay in the in-memory database, because ages and distinct counts need them, but no tool returns them. Ages come out as bands and dates as months.
Any cell covering fewer than 11 clients is suppressed. Eleven is the CMS convention; you can change it, down to 5.
If one suppressed cell on a row or column could be recovered by subtracting the others from a total, a second cell is suppressed as well.
The server remembers which client groups it has already answered about. A later query whose group differs from an earlier one by fewer than 11 clients, with one containing the other, is refused. That blocks the "everyone, then everyone except the people who entered on March 3rd" trick.
Unexpected errors return a generic message, so a database error can't carry data out.
Over HTTP, every request needs the access secret or a token issued after someone typed it into the approval page. Only hashes of issued tokens are stored. Ten wrong guesses lock the approval page for ten minutes.
Known limits, stated plainly:
The differencing check is pairwise and lives in memory. Restarting the server clears it, and an attack that combines three or more overlapping queries can get past it.
Attribute disclosure is not addressed. If all 14 clients in some cell share a sensitive attribute, a breakdown will show that. Anyone who knows a person is in the cell learns the attribute.
A suppressed cell still shows that between 1 and 10 clients are in it.
Small projects will see a lot of suppression on detailed breakdowns. That is the rule working. Use coarser dimensions or longer periods.
Have your HMIS lead review this before using it on real data. HUD has said publicly that general-purpose AI tools are not appropriate for client data, and your CoC's privacy policy may have its own rules about AI and about minimum cell sizes.
What the numbers mean
These are counts from your export, not certified HUD reports. Where they can differ from an APR or CAPER:
Age is taken at the later of entry or period start, as HUD reports do.
Household type is computed from members' ages at entry.
Length of stay runs from entry to exit, or to the period end for people still enrolled. It does not use move-in dates.
Bed utilization uses entry and exit dates, move-in dates for permanent housing, and bed-night records for night-by-night shelters.
Chronic homelessness is not implemented.
Adding a live backend
hmis_mcp.source.DataSource is the seam. A source fills raw_* tables using
HUD CSV column names, and everything after that is shared. WellSky does not
publish API documentation, so a live backend needs an arrangement with WellSky
or your HMIS lead before it can be written.
Development
git clone https://github.com/dan-blanchard/hmis-mcpcd hmis-mcp && uv run pytestThe tests build a synthetic export with planted names and SSNs, run every tool across every dimension, and fail if any planted value appears in any output. They also write the same population in each supported HUD CSV revision and require identical answers, check that tool schemas avoid the JSON Schema features some model providers reject, and drive the HTTP transport through a full OAuth sign-in. One test builds the Claude Desktop bundle and launches it the way a bundle host would. CI runs them on Windows, macOS and Linux.
To release: raise version in pyproject.toml, run uv lock, and merge to
main. Then push an annotated tag named v plus that version, with the
release notes as the tag's message. The release workflow checks that the tag
matches the version and sits on main, uploads the package to PyPI, and
creates the GitHub release with the Claude Desktop bundle attached.
License
0BSD. Do what you like with it; no attribution needed.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The all-in-one data stack for agents. Upload files, run SQL, evolve tables, and render charts.
SEC filings, Wikipedia, arXiv, US Census and more for AI agents, with every answer source-linked.
Agent-native MCP server over 49M+ US public and government records, privacy-first, always current.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to analyze large CSV files locally by importing them into SQLite, profiling columns, and running read-only SQL queries without data leaving the machine.MIT
- AlicenseNot gradedqualityBmaintenanceEnables safe agentic execution and privacy-preserving data release by generating epsilon-noise and redacting quasi-identifiers in tabular datasets, while guarding against prompt injection, runaway spend, planning loops, and destructive shell commands.7MIT
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants with official U.S. Census Bureau statistics, enabling them to discover available datasets, resolve place names to FIPS geography codes, and retrieve aggregate demographic and economic data through natural language. It draws on both the live Census Data API and a locally seeded database for faster search.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run SQL analytics against healthcare claims through a de-identified mart, with privacy enforced inside the database engine — small-cell suppression, read-only authorization, resource budgets, and a tamper-evident audit log — so agents can answer questions about denial rates and costs without ever touching PHI.MIT