Catalog PyPI
PACKAGE EXPLORERView in registry

agami-core

PyPI

agami-core — governed semantic model, the shared MCP TOOLS harness, and the unified local query executor.

Versions collected1
Direct dependencies11From release 0.9.17
Last observed20 Oct, 21:18 UTC

README

Version 0.9.17 documentation

agami-core

The governed trust layer between an AI agent and your database. The importable core behind the agami Claude Code skill and MCP server — the semantic model, the shared MCP TOOLS harness, and the local query executor.

What it does

Point an AI agent at a database and it answers by guessing — at the join, at what "revenue" means, at which rows it's allowed to read. agami-core turns your schema into a governed semantic model where every join is FK-derived or human-approved and every metric is signed off before the runtime trusts it. Every answer then ships a receipt — the exact SQL it ran and the model version it pinned — so a silent join mistake never reaches you as a confident wrong number.

It runs locally: credentials, schema, and query results never leave your machine.

Most people don't pip install this

If you just want to use agami, install the Claude Code plugin — you don't touch this package directly:

/plugin marketplace add AgamiAI/agami-core
/plugin install agami-core@agami

pip install agami-core is for the other two audiences: importing the library into your own code, or self-hosting the MCP server. Full product docs and the plugin walkthrough live in the repository.

Install

pip install agami-core            # executor + stdio harness (pure-stdlib)
pip install 'agami-core[model]'   # + the semantic model (pydantic / sqlglot / pyyaml)
pip install 'agami-core[server]'  # + the networked HTTP MCP server (see below)

From a checkout, swap in the editable path — pip install -e 'packages/agami-core[model]'.

Importing the library

The top-level names — semantic_model, mcp_harness, execute_sql, agami_paths — are a deliberate flat invariant (no parent package, no sys.path juggling), so a consumer's imports resolve unchanged:

from mcp_harness import TOOLS
import semantic_model
import execute_sql

Module entry points:

python -m mcp_harness                        # the stdio MCP server (Claude Desktop)
python -m execute_sql --sql-file query.sql   # the local query executor
python -m semantic_model.cli                 # the semantic-model CLI (driven by the `sm` launcher)
python -m mcp_http                           # the networked HTTP MCP server (see below)

HTTP MCP server ([server]) — early access, in testing

The [server] extra adds a networked MCP transport: the same TOOLS surface as the stdio server, but over HTTP with OAuth and a small admin console. It's the self-host shape of the hosted product — deploy it to your own host and a whole team connects their own Claude to one URL, zero-egress by default (enabling OIDC/SSO adds one outbound call to your identity provider).

🧪 Early access. This team/server layer is usable today but newer than the local single-player path — expect the occasional rough edge, and please report anything broken via a GitHub issue. The local library and stdio server are the stable path.

A minimal local launch (SQLite store, password admin):

PUBLIC_BASE_URL=https://your-host \
AGAMI_SIGNING_SECRET=$(openssl rand -hex 32) \
AGAMI_DB_URL=sqlite:///$PWD/agami.db \
AGAMI_ADMIN_USERNAME=you@example.com AGAMI_ADMIN_PASSWORD=choose-a-strong-one \
python -m mcp_http

The full detail — the auth/access model, OIDC onboarding, the admin console (Activity + Model views), and every environment variable — lives in the docs rather than here:

  • Repository & full docs — github.com/AgamiAI/agami-core
  • Homepage — agami.ai
  • License — fair-code (source-available), the Agami Functional Use License. Self-hosting for your own organization is free; serving people outside it needs a commercial license.

Downloads & popularity

24downloads
1-day window · source-reported counts19 Oct 2026
439219.50
2026-07-22: 33 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-22–2026-07-222026-07-23: 37 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-23–2026-07-232026-07-24: 4 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-24–2026-07-242026-07-25: 1 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-25–2026-07-252026-07-26: 104 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-26–2026-07-262026-07-27: 40 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-27–2026-07-272026-07-28: 18 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-28–2026-07-282026-07-29: 67 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-29–2026-07-292026-07-30: 167 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-30–2026-07-302026-07-31: 307 · observed 2026-10-20T22:30:54.8385859Z · period 2026-07-31–2026-07-312026-08-01: 43 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-01–2026-08-012026-08-02: 179 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-02–2026-08-022026-08-03: 64 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-03–2026-08-032026-08-04: 126 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-04–2026-08-042026-08-05: 124 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-05–2026-08-052026-08-06: 123 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-06–2026-08-062026-08-07: 71 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-07–2026-08-072026-08-08: 281 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-08–2026-08-082026-08-09: 205 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-09–2026-08-092026-08-10: 73 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-10–2026-08-102026-08-11: 251 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-11–2026-08-112026-08-12: 198 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-12–2026-08-122026-08-13: 153 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-13–2026-08-132026-08-14: 187 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-14–2026-08-142026-08-15: 23 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-15–2026-08-152026-08-16: 6 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-16–2026-08-162026-08-17: 135 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-17–2026-08-172026-08-18: 280 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-18–2026-08-182026-08-19: 222 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-19–2026-08-192026-08-20: 63 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-20–2026-08-202026-08-21: 188 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-21–2026-08-212026-08-22: 74 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-22–2026-08-222026-08-23: 3 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-23–2026-08-232026-08-24: 52 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-24–2026-08-242026-08-25: 23 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-25–2026-08-252026-08-26: 51 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-26–2026-08-262026-08-27: 244 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-27–2026-08-272026-08-28: 6 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-28–2026-08-282026-08-29: 34 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-29–2026-08-292026-08-31: 25 · observed 2026-10-20T22:30:54.8385859Z · period 2026-08-31–2026-08-312026-09-01: 26 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-01–2026-09-012026-09-02: 146 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-02–2026-09-022026-09-03: 24 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-03–2026-09-032026-09-04: 141 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-04–2026-09-042026-09-05: 207 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-05–2026-09-052026-09-06: 67 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-06–2026-09-062026-09-07: 269 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-07–2026-09-072026-09-08: 212 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-08–2026-09-082026-09-09: 65 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-09–2026-09-092026-09-10: 9 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-10–2026-09-102026-09-11: 7 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-11–2026-09-112026-09-12: 151 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-12–2026-09-122026-09-13: 91 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-13–2026-09-132026-09-14: 353 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-14–2026-09-142026-09-15: 439 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-15–2026-09-152026-09-16: 286 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-16–2026-09-162026-09-17: 347 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-17–2026-09-172026-09-18: 174 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-18–2026-09-182026-09-19: 93 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-19–2026-09-192026-09-20: 206 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-20–2026-09-202026-09-21: 57 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-21–2026-09-212026-09-22: 6 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-22–2026-09-222026-09-23: 94 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-23–2026-09-232026-09-24: 65 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-24–2026-09-242026-09-25: 29 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-25–2026-09-252026-09-26: 109 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-26–2026-09-262026-09-27: 10 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-27–2026-09-272026-09-28: 7 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-28–2026-09-282026-09-29: 8 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-29–2026-09-292026-09-30: 2 · observed 2026-10-20T22:30:54.8385859Z · period 2026-09-30–2026-09-302026-10-01: 81 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-01–2026-10-012026-10-02: 30 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-02–2026-10-022026-10-03: 11 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-03–2026-10-032026-10-04: 13 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-04–2026-10-042026-10-05: 47 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-05–2026-10-052026-10-06: 6 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-06–2026-10-062026-10-07: 225 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-07–2026-10-072026-10-08: 41 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-08–2026-10-082026-10-09: 12 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-09–2026-10-092026-10-10: 228 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-10–2026-10-102026-10-11: 26 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-11–2026-10-112026-10-12: 121 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-12–2026-10-122026-10-13: 126 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-13–2026-10-132026-10-14: 151 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-14–2026-10-142026-10-15: 147 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-15–2026-10-152026-10-16: 50 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-16–2026-10-162026-10-17: 50 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-17–2026-10-172026-10-18: 180 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-18–2026-10-182026-10-19: 24 · observed 2026-10-20T22:30:54.8385859Z · period 2026-10-19–2026-10-19
22 Jul19 Oct

pypistats · 89 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-19 – 2026-10-19242026-10-20T22:30:54.8385859Z
2026-10-18 – 2026-10-181802026-10-20T22:30:54.8385859Z
2026-10-17 – 2026-10-17502026-10-20T22:30:54.8385859Z
2026-10-16 – 2026-10-16502026-10-20T22:30:54.8385859Z
2026-10-15 – 2026-10-151472026-10-20T22:30:54.8385859Z
2026-10-14 – 2026-10-141512026-10-20T22:30:54.8385859Z
2026-10-13 – 2026-10-131262026-10-20T22:30:54.8385859Z
2026-10-12 – 2026-10-121212026-10-20T22:30:54.8385859Z
2026-10-11 – 2026-10-11262026-10-20T22:30:54.8385859Z
2026-10-10 – 2026-10-102282026-10-20T22:30:54.8385859Z
2026-10-09 – 2026-10-09122026-10-20T22:30:54.8385859Z
2026-10-08 – 2026-10-08412026-10-20T22:30:54.8385859Z
2026-10-07 – 2026-10-072252026-10-20T22:30:54.8385859Z
2026-10-06 – 2026-10-0662026-10-20T22:30:54.8385859Z
2026-10-05 – 2026-10-05472026-10-20T22:30:54.8385859Z
2026-10-04 – 2026-10-04132026-10-20T22:30:54.8385859Z
2026-10-03 – 2026-10-03112026-10-20T22:30:54.8385859Z
2026-10-02 – 2026-10-02302026-10-20T22:30:54.8385859Z
2026-10-01 – 2026-10-01812026-10-20T22:30:54.8385859Z
2026-09-30 – 2026-09-3022026-10-20T22:30:54.8385859Z
2026-09-29 – 2026-09-2982026-10-20T22:30:54.8385859Z
2026-09-28 – 2026-09-2872026-10-20T22:30:54.8385859Z
2026-09-27 – 2026-09-27102026-10-20T22:30:54.8385859Z
2026-09-26 – 2026-09-261092026-10-20T22:30:54.8385859Z
2026-09-25 – 2026-09-25292026-10-20T22:30:54.8385859Z
2026-09-24 – 2026-09-24652026-10-20T22:30:54.8385859Z
2026-09-23 – 2026-09-23942026-10-20T22:30:54.8385859Z
2026-09-22 – 2026-09-2262026-10-20T22:30:54.8385859Z
2026-09-21 – 2026-09-21572026-10-20T22:30:54.8385859Z
2026-09-20 – 2026-09-202062026-10-20T22:30:54.8385859Z
2026-09-19 – 2026-09-19932026-10-20T22:30:54.8385859Z
2026-09-18 – 2026-09-181742026-10-20T22:30:54.8385859Z
2026-09-17 – 2026-09-173472026-10-20T22:30:54.8385859Z
2026-09-16 – 2026-09-162862026-10-20T22:30:54.8385859Z
2026-09-15 – 2026-09-154392026-10-20T22:30:54.8385859Z
2026-09-14 – 2026-09-143532026-10-20T22:30:54.8385859Z
2026-09-13 – 2026-09-13912026-10-20T22:30:54.8385859Z
2026-09-12 – 2026-09-121512026-10-20T22:30:54.8385859Z
2026-09-11 – 2026-09-1172026-10-20T22:30:54.8385859Z
2026-09-10 – 2026-09-1092026-10-20T22:30:54.8385859Z
2026-09-09 – 2026-09-09652026-10-20T22:30:54.8385859Z
2026-09-08 – 2026-09-082122026-10-20T22:30:54.8385859Z
2026-09-07 – 2026-09-072692026-10-20T22:30:54.8385859Z
2026-09-06 – 2026-09-06672026-10-20T22:30:54.8385859Z
2026-09-05 – 2026-09-052072026-10-20T22:30:54.8385859Z
2026-09-04 – 2026-09-041412026-10-20T22:30:54.8385859Z
2026-09-03 – 2026-09-03242026-10-20T22:30:54.8385859Z
2026-09-02 – 2026-09-021462026-10-20T22:30:54.8385859Z
2026-09-01 – 2026-09-01262026-10-20T22:30:54.8385859Z
2026-08-31 – 2026-08-31252026-10-20T22:30:54.8385859Z
2026-08-29 – 2026-08-29342026-10-20T22:30:54.8385859Z
2026-08-28 – 2026-08-2862026-10-20T22:30:54.8385859Z
2026-08-27 – 2026-08-272442026-10-20T22:30:54.8385859Z
2026-08-26 – 2026-08-26512026-10-20T22:30:54.8385859Z
2026-08-25 – 2026-08-25232026-10-20T22:30:54.8385859Z
2026-08-24 – 2026-08-24522026-10-20T22:30:54.8385859Z
2026-08-23 – 2026-08-2332026-10-20T22:30:54.8385859Z
2026-08-22 – 2026-08-22742026-10-20T22:30:54.8385859Z
2026-08-21 – 2026-08-211882026-10-20T22:30:54.8385859Z
2026-08-20 – 2026-08-20632026-10-20T22:30:54.8385859Z
2026-08-19 – 2026-08-192222026-10-20T22:30:54.8385859Z
2026-08-18 – 2026-08-182802026-10-20T22:30:54.8385859Z
2026-08-17 – 2026-08-171352026-10-20T22:30:54.8385859Z
2026-08-16 – 2026-08-1662026-10-20T22:30:54.8385859Z
2026-08-15 – 2026-08-15232026-10-20T22:30:54.8385859Z
2026-08-14 – 2026-08-141872026-10-20T22:30:54.8385859Z
2026-08-13 – 2026-08-131532026-10-20T22:30:54.8385859Z
2026-08-12 – 2026-08-121982026-10-20T22:30:54.8385859Z
2026-08-11 – 2026-08-112512026-10-20T22:30:54.8385859Z
2026-08-10 – 2026-08-10732026-10-20T22:30:54.8385859Z
2026-08-09 – 2026-08-092052026-10-20T22:30:54.8385859Z
2026-08-08 – 2026-08-082812026-10-20T22:30:54.8385859Z
2026-08-07 – 2026-08-07712026-10-20T22:30:54.8385859Z
2026-08-06 – 2026-08-061232026-10-20T22:30:54.8385859Z
2026-08-05 – 2026-08-051242026-10-20T22:30:54.8385859Z
2026-08-04 – 2026-08-041262026-10-20T22:30:54.8385859Z
2026-08-03 – 2026-08-03642026-10-20T22:30:54.8385859Z
2026-08-02 – 2026-08-021792026-10-20T22:30:54.8385859Z
2026-08-01 – 2026-08-01432026-10-20T22:30:54.8385859Z
2026-07-31 – 2026-07-313072026-10-20T22:30:54.8385859Z
2026-07-30 – 2026-07-301672026-10-20T22:30:54.8385859Z
2026-07-29 – 2026-07-29672026-10-20T22:30:54.8385859Z
2026-07-28 – 2026-07-28182026-10-20T22:30:54.8385859Z
2026-07-27 – 2026-07-27402026-10-20T22:30:54.8385859Z
2026-07-26 – 2026-07-261042026-10-20T22:30:54.8385859Z
2026-07-25 – 2026-07-2512026-10-20T22:30:54.8385859Z
2026-07-24 – 2026-07-2442026-10-20T22:30:54.8385859Z
2026-07-23 – 2026-07-23372026-10-20T22:30:54.8385859Z
2026-07-22 – 2026-07-22332026-10-20T22:30:54.8385859Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.9.1718 Oct 202611

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agamiai/agami-core

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:25bb03b44668c3aab083bbe29e815763ddd6e89061cec839c8f5ea8a60f84fb7