Portward
Connects to MySQL databases in read-only mode, lets the AI write guarded SQL queries, and applies table/column block rules so only permitted data can be accessed.
Wraps Snowflake-managed MCP servers and Snowflake-Labs/mcp, exposing only governed SQL query tools with column-level profile rewrites and hiding Cortex, search, analyst, and other ungoverned tools.
Connects to SQLite database files as read-only sources, allowing the AI to query selected tables and columns while enforcing block rules and keeping results under user-controlled selection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Portward show me the first 20 rows from the orders table in sales.db"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Portward (free, local)
Choose what Claude sees from your database. A local MCP server: the AI writes SQL, a read-only guard checks it,
and the rows show to you in a results panel inside the chat. The AI gets only the rows and columns you pick and
put in the chat ('Put in chat'): a short note goes into your message box (in Claude Desktop you press send), naming
your selection by an id and its columns but no values, and the AI then fetches exactly the rows you picked with
get_selection. You still send a visible message; the rows come back as a tool result you can expand in the chat,
and they are listed in what the AI was sent (your Portward page). In a client
without panels, a capped preview goes back to the AI. Every pull is recorded in one local database file in your
app-data folder.
Sources: SQLite files, CSV files (one table named after the file), Excel workbooks (one table per sheet), and Postgres and MySQL databases. All are opened read-only, and a file source can read only the file you added. A database's password is kept in your computer's keychain, never in the local file; an administrator login is refused, and a login that can write is accepted with a warning but only ever runs read-only queries.
Install
Claude Desktop: download the extension for your computer (portward-<version>-macos-arm64.mcpb for Apple
silicon Macs, -macos-x64 for Intel Macs, -windows-x64 for Windows) and open it. Claude Desktop asks you to
install it. Nothing else is needed: no Python, no terminal.
For Claude Code and ChatGPT desktop you need uv. Your AI app starts the server itself.
Claude Code:
claude mcp add --scope user --transport stdio portward -- uvx portward-free==0.1.0ChatGPT desktop (and the Codex CLI, which share one config):
codex mcp add portward -- uvx portward-free==0.1.0Or add this to ~/.codex/config.toml yourself:
[mcp_servers.portward]
command = "uvx"
args = ["portward-free==0.1.0"]Claude Code and Cowork can also install it as a plugin, which adds a skill that tells Claude when to use it:
/plugin marketplace add hamzaelsiesy/portward-free
/plugin install portward@portwardRelated MCP server: sqlite-mcp-server
Update
Change the version in the command (or the plugin) and restart your AI app. Your sources, settings and history live in your app-data folder, not in the package, so an update keeps them. A newer version migrates the file the first time it opens it; an older version refuses a file a newer one wrote, and asks you to update.
macOS:
~/Library/Application Support/Portward/portward.dbWindows:
%APPDATA%\Portward\portward.dbLinux:
$XDG_DATA_HOME/portward/portward.db(default~/.local/share/portward/portward.db)
PORTWARD_HOME overrides the folder. uvx portward-free==0.1.0 --version prints the version you run.
Adding a file
The AI can ask to add a SQLite, CSV or Excel file, but it isn't added until you say yes yourself: in your AI app's own prompt where it has one, else by typing the source's name in the Portward panel's form or a one-time page on your computer, else by running the command it gives you in a terminal:
uvx portward-free==0.1.0 add-file <name> <kind> <path>That command runs only at a terminal you're using (not with its output captured), so an AI that can run commands can't add a file through it. Adding the same file again under the same name asks nothing.
Block rules
You can block a table, or one column, from the AI for good (block, or your Portward page); removing a block asks
you first. A rule belongs to what the source points at, not to its name: a file is known by its real path and by
the file itself (so a symlink, a hard link or a second name for it is blocked the same way), a database by its host,
port and database name. Rules stay when you remove a source, and apply again when you add it back under any name.
A rule on a Postgres partition or inheritance child also holds on every parent table whose rows include it. If a
blocked column isn't there any more (renamed, most likely), its whole table is kept from the AI until you block the
new name or remove the rule, and list_sources says so.
Database passwords
A database's password never passes through the chat: no tool the AI can call takes one. The AI adds the connection's host, port, database and user, and Portward asks you for the password where the AI can't see it:
in a client with panels (Claude Desktop), a small form in the Portward panel;
in a client that can open a page for a server (MCP URL elicitation), a one-time page on your computer (
http://127.0.0.1:<port>/...), which works once, for 10 minutes;otherwise, a command to run in a terminal, which asks for the password without showing what you type:
uvx portward-free==0.1.0 password <name>
Each way tests the connection first and saves the password in your OS keychain only if it works. To change a
password, ask the AI to update it (update_password), or run the same command. Changing a connection's settings
removes its saved password, so a password is never sent to a server you didn't type it for.
The code Portward emails you to confirm your address for sharing goes the same way: you type it in the panel, the
one-time page, or uvx portward-free==0.1.0 share-code in a terminal, never in the chat.
Wrap mode (Personal)
Portward can sit in front of a Postgres MCP server you already use (Postgres MCP Pro), so your profiles apply to
it. Set it up yourself in a terminal; the database URI is read from DATABASE_URI or asked for without showing
what you type, and kept in your keychain:
uvx portward-free==0.1.0 wrap-add <name> -- uvx postgres-mcpThen, in your AI app, use uvx portward-free==0.1.0 wrap <name> in place of the original server. Portward runs the
server itself, in its read-only mode, and shows the AI only its execute_sql tool, with every query rewritten so
only the columns your applied profiles grant exist, plus list_tables. Its other tools stay hidden (they show
schema, plans or other sessions' queries). Until you apply a profile to <name>, the AI sees nothing of it. Setup
warns you when the original server is still set up in Claude Desktop, Claude Code or ChatGPT desktop; check
claude.ai and ChatGPT settings for a connector to the same database yourself.
It can also sit in front of a Snowflake-managed MCP server (CREATE MCP SERVER). Give its URL; a programmatic access
token for it is read from SNOWFLAKE_PAT or asked for, and kept in your keychain:
uvx portward-free==0.1.0 wrap-add <name> --provider snowflake --url https://<account>.snowflakecomputing.com/api/v2/databases/<db>/schemas/<schema>/mcp-servers/<server>Its tool names are whatever the server's specification chose, so Portward tells them apart by what they take: the
SQL tool (SYSTEM_EXECUTE_SQL, one sql argument) is shown, with the same rewrite; Cortex agents, Cortex Search,
Cortex Analyst and custom function or procedure tools stay hidden, because Portward can't tie what they return to the
columns your profiles grant. Setup lists which tools are governed and which are hidden, and why.
Or in front of Snowflake-Labs/mcp, the open-source server you run with uvx snowflake-labs-mcp. Give its command
with your account, user and warehouse (not the password: it is read from SNOWFLAKE_PAT or asked for, and passed to
the server as SNOWFLAKE_PASSWORD; a programmatic access token works as one):
uvx portward-free==0.1.0 wrap-add <name> --provider snowflake -- uvx snowflake-labs-mcp --account <account> --user <user> --warehouse <warehouse>Portward starts it with a service config of its own that turns on only run_snowflake_query and allows only SELECT,
so its Cortex, object manager and semantic view tools never run.
What's counted, stored and sent
It runs on your machine, over stdio, started by your AI app. It reads only the sources you add, read-only, and talks
to them directly. Everything below is checked against the code by tests/test_readme.py, so if the code changes
and this page doesn't, the tests fail.
What leaves your computer, and when
To your AI app: the replies to the tools it calls. With a results panel the AI gets only the shape of a result and the rows you put in the chat (it fetches them with
get_selection, using the selection id your message gives it; the id is random, so it can't fetch rows you didn't put in the chat); without one it gets a capped preview, plus more rows only when you approve them. Your AI app sends what it gets to its own AI service, under that app's terms, as it does with anything in the chat.To Portward's usage service,
https://signup.portward.ai/v1/usage: anonymous usage counts (below), only while they're on.To Portward's share service, only when you share (below): your email and name once, to confirm your email; then, for each share, your teammate's email and the encrypted table.
To Portward's account service (
PORTWARD_ACCOUNT_URL, defaulthttps://signup.portward.ai), only if you sign in to a Personal account: this computer's token, and while sync is on, your history, saved pulls, notes, rules, profiles and AI log summary encrypted here (below).Opening "Need this for your team?" goes to
https://portward.ai/teams; while usage counts are on it goes throughhttps://signup.portward.ai/v1/usage/teamfirst, which counts the click for that week and sends you on.
Nothing else is sent anywhere. Every request to a Portward service says it comes from portward/<version> and,
like any web request, comes from your IP address.
Usage counts
Nothing is counted or sent until you have seen Portward's question about usage counts yourself, in one of the
places you see directly: your AI app's own prompt (where it can show one), the results panel, your Portward page,
or a Portward command you run in a terminal. A note in the AI's reply doesn't count, and the AI can't turn them on
before you were asked. Once you've seen the question they're on unless you say no: answer no there, use the panel's
or the page's switch, tell the AI (it calls usage_counts with on=false). Turning them off deletes the counts
kept so far. PORTWARD_USAGE=off or DO_NOT_TRACK=1 in the environment turns them off for good, and you're never
asked. Nothing is sent for an hour after you've seen the question; after that, at most one attempt an hour, from a
tool call. usage_counts shows the exact reports that would be sent next.
One report is sent to https://signup.portward.ai/v1/usage for each week Portward is used, with exactly these
fields and nothing else:
report: a random id, new every week, so a resend of the same week replaces itself. There is no install id, so two weeks' reports can't be linked to each other or to you.week: the week (for example2026-W45).installed_week: the week this install first ran.pulls: the number of pulls that week.shares: the number of shares that week.source_types: the kinds of source pulled from (sqlite,csv,excel,postgres,mysql, andwrap-postgresorwrap-snowflakefor a Postgres MCP or Snowflake MCP server Portward wraps).ai_clients: the kinds of AI app used (claude-desktop,claude-code,chatgpt,other).profiles: how many profiles you have (Personal; 0 otherwise).grants_full: how many of their grants show a column in full.grants_anonymised: how many show one anonymised.grants_totals: how many show one as totals only.routes: the web routes that reached this computer (direct,hosted), with Personal.
Never your data, queries, questions, source, table or column names, paths, hosts, or any identifier. The counts
wait in the local file (usage_weeks) until sent; a finished week is deleted once the service has it.
On your computer
One database file in your app-data folder (see Update above). It holds:
settings: your settings (keep rows, usage counts and when and where you saw the question and they were last sent, the week Portward was installed) and, once you confirm it for sharing, your email and name and when your share token expires.connections: each source's name, kind and settings: a file's path, or a database's host, port, database and login name. Never its password.notes: notes you add to tables and columns.rules: your block rules.pulls: one history entry per pull: question, SQL, source, tables, columns, time, row count, a hash of the result, and its saved name if you saved it. Not the result rows.kept_rows: result rows, only if you turn keeping rows on (keep_rows, off by default). Encrypted with AES-256-GCM under the keychain key below, and deleted after 30 days.conversations: one entry per run of the server, with the name your AI app gave.ai_responses: what the AI was sent, for your Portward page ("sent to the AI"): each tool's name, time and arguments and its reply (including the rowsget_selectionsent), and the exact text of each 'Put in chat' note the panel builds, encrypted with AES-256-GCM under the keychain key below (if the keychain can't be used, only the tool name and time are kept). Deleted after 30 days.usage_weeks: usage counts not yet sent (above).shares: who you shared with, when, from which pull, which columns, how many rows, and when it expires. Never the link or its key.sync_records: with sync on (Personal), what this computer and the sync service last agreed on for each synced record: its version there and the same history entry, saved name, note or rule as above.panel_pulls: with a panel, the rows of your last 50 results (at most 1,000 each) so the panel can show them, encrypted with AES-256-GCM under the keychain key below, and deleted after 24 hours. (Some AI apps run two Portward processes, one for the AI and one for the panel; this is how the panel reaches the rows.)panel_selections: with a panel, each selection you put in the chat: the rows and columns you picked (encrypted with AES-256-GCM under the keychain key below), the result they are from, and the selection's id only as a SHA-256 hash. The last 200 are kept, each until the result it is from is no longer held for the panel (24 hours at most).open_asks: forms open now for a password, the sharing code or a recovery key: what each is for (the source's settings as above, or your email), when it expires, and wrong tries so far. Only a hash of the form's one-time token, never the token or what you type. Closed once used, and after 10 minutes.share_links: with a panel, each new share's link (its#part is the share's key), who it is for and your name for the mail draft, encrypted with AES-256-GCM under the keychain key below, so the share panel can show it for you to copy. Kept for 24 hours (never past the share's expiry), the last 100 shares at most. The AI never gets it.profiles: with Personal, every saved version of each of your profiles: its name, one-line description, the tables and columns it grants and at what level, its version, and the account email that first made it and that saved this version, with its context: the meanings of what it grants, its named definitions and its links between columns, as you approved them (and meanings you imported from a data dictionary, as you confirmed the mapping). Never data or passwords.context_drafts: meanings, definitions and links an AI app drafted for a profile, waiting for you to approve or throw away. A draft is never part of a profile or sent to the AI until you approve it, and never synced.assumptions: what the AI said it assumed when no definition covered a question, with the pull it was made for, and the definition you turned it into, if you did. Kept on this computer only: never synced.context_picks: which profile's words you picked when two profiles on one source describe a column or term differently, for exactly those two texts (so you're asked again once either changes).profile_connections: which sources run on profiles instead of block rules (by name and by what they point at, likerules).applied_profiles: which profiles are applied to which source, and the grants that weren't in that source when last looked (so one that turns up later is noticed once).ai_reads: the AI log's summary, one entry per read the AI was handed: when, which AI app, the route, the source, the profiles and versions that allowed it, the tables and columns with the level each was shown at, the row count and a hash of the result. Never the rows. Kept a year; with sync on it goes to your other computers encrypted. The proof report (export_proof_report, Personal) is made from it.
Besides that file: exports you ask for (CSV or Excel, and proof reports as PDF and CSV, not encrypted) go in its
exports folder, and the sample
database, if you use it, is sample.sqlite next to it.
In your keychain
Secrets go in your OS keychain (macOS Keychain, Windows Credential Manager, or Secret Service on Linux), under the
service name Portward, never in the file:
connection:<name>: a database source's password.kept-rows-key: the AES-256 key that encrypts kept rows and what the AI was sent. Made on first use. Without it those can't be read.share-token: the token from confirming your email for sharing (one per computer). It expires on the share service after 90 days; a share made in its last 30 days swaps it for a new one first, for up to a year after you confirmed your email, and then you confirm it again.account-token: this computer's token for your Personal account, once you sign in.sync-device-key: with sync on, this computer's own AES-256 key, which opens the account's sync key that the sync service keeps wrapped for this computer.
Sharing
Sharing is the only time your data leaves your machine, and only when you share. The pull is run again under your
block rules, encrypted here (AES-256-GCM, a new key for each share), and only the encrypted copy goes to Portward's
share service (PORTWARD_SHARE_URL, default https://share.portward.ai). The key is in the link's # part, which
browsers never send to a server, so the share service never has it, and neither does the AI. With a panel the new
link shows in Portward's share panel: press Copy link and send it to your teammate yourself, or press Open in mail app
for a draft to them in your own mail app. Nothing is sent until you send it. In an AI app without panels a draft to
your teammate opens in your mail app straight away, as before. Your teammate opens it with a code Portward emails
them, and their browser decrypts it. Shares are view only unless you choose to let your teammate download the table
(the AI leaves download off unless you ask for it); then their page has a Download CSV button that makes the file in
their browser. Anyone who can see a table can still copy what's on screen, so view only means no download button,
not that the data can't be copied. Shares expire after 7 days. With Portward Personal a share can last up to 90 days, and on your account page (or by asking the AI)
you can see when each was opened and withdraw one: its link stops working and the encrypted copy is deleted at once.
A share can be up to 5 MB encrypted; a bigger table is refused before anything is sent (share fewer rows or columns). The share service also limits how many shares one person makes, and how many one teammate is sent, each hour and each day; when you reach a limit it says when to try again.
The code that confirms your email for sharing works only on the computer that asked for it: that computer sends a random secret with the request and with the code, and the service keeps only its hash. An address gets at most 3 code emails an hour and takes at most 10 wrong codes a day; after that even the right code waits until the next day. With Personal, changing a share's expiry from the AI asks you to confirm in your AI app's own prompt (an app that can't ask sends you to your account's "Your shares" page instead); withdrawing a share happens at once.
What a share holds
Encrypted, so only someone with the link can read it:
v: the format version (2; a version 1 share has noallow_downloadand is view only).title: the pull's title.source: the source's name.pulled_at: when it was pulled.columns: the column names.rows: the rows.row_count: the number of rows.truncated: whether the source had more rows than were pulled.allow_download: whether your teammate may download it as a CSV (false unless you chose it). It is sealed with the rows, so the share service never learns it and it can't be changed after the share is made.anonymised: the columns you chose to anonymise.totals: only when you chose totals for a column: which columns, the smallest group shown, how many rows the totals come from and how many were left out.
Before it is encrypted you choose, for each column: include (the default), hide (it isn't in the share at all), anonymise or totals only. Anonymise swaps each value for a code (an HMAC-SHA256 under a random key made for that share and then thrown away), so the same value has the same code within the share but can't be worked back to the value, and gets a different code in every other share. Totals only groups the rows by the other columns and shows a row count and each totals column's sum (or count of values, for a column that isn't numbers); groups of fewer than 5 rows are left out and there is no grand total, so no single row's value can be read off or subtracted out.
What the share service keeps
Your email and name, and a hash of your share token and when it expires, from when you confirmed your email. An expired token's entry is deleted 30 days after it expires.
For each share: your email and name, your teammate's email, the encrypted copy, and when it was made and expires. The encrypted copy is deleted when the share expires (at once if you withdraw it), and the rest a day later.
The time of each open.
One-time codes, as hashes only: they last 10 minutes and allow 5 tries.
Sync (Personal)
With sync on, your history (questions, SQL, sources, tables, columns, times, row counts, result hashes), saved pull
names, notes, block rules, Personal's profiles (with their approved context) and the connections they're applied
to, and the AI log's summary (ai_reads above) go to the sync service encrypted on your computer, so Portward can't
read them. Not your result rows, kept rows, the values the AI was sent, your connections or any password: those stay
on each computer.
The first computer makes a random key for your account and a recovery key that it shows you once, in a page on that computer (or in a terminal). Write it down: it is the only way to open your synced data on a new computer, and Portward can't recover it, because it never leaves your computer.
Each record is encrypted with AES-256-GCM under the account key, and filed under a keyed hash, so the service doesn't see what it is or what it is about. The service keeps the account key only wrapped: under each computer's own key from its keychain, and under a key made from your recovery key with Argon2id.
A new computer asks you for the recovery key where the AI can't see it (the Portward panel, a page on that computer, or
portward-free sync-restorein a terminal). Signing a computer out, or ending it on your account page, ends its wrap, so it needs the recovery key again.When two computers change the same thing before syncing, nothing is dropped: two versions of a note are both kept in it, a block from either computer applies on both, and for a saved name the later naming wins (both pulls stay in history). A block removed on one computer stays on the others until you remove it there too.
A profile syncs as its latest version, and applies on every computer where it's applied. Saved on two computers at once, one version applies and the other is kept as a copy, applied nowhere. A connection switched back to block rules on one computer stays on profiles on the others until you switch it there too.
The recovery key page opens through a file on your computer only you can read, so its address never shows in the list of running programs, and it shows the key to one viewer only.
Making a new recovery key (
sync_new_recovery_key, orportward-free sync-recovery-keyin a terminal) also makes a new account key: the computer re-encrypts everything under it, so the old recovery key and any old copy of the service's data open nothing synced after that. Your other computers move to the new key on their next sync with nothing to type; a new computer needs the new recovery key. Only a computer that holds the account key can do this: a stolen sign-in token alone can't replace your recovery key.The sync service keeps at most 100,000 records and 256 MB of encrypted data per account.
Sync stops when Personal ends; everything on each computer stays. The sync service keeps your encrypted data for 90 days after Personal ends and then deletes it; if Personal is on again within those 90 days, sync picks up where it left off.
What the sync service keeps
Per account: the wrapped account key (one per signed-in computer, and one under your recovery key) and a hash that tells computers which key is in use.
Per record: the encrypted record, its keyed-hash id, a version number and when it last changed.
Your Personal account
Signing in opens your browser on Portward's account page, which uses WorkOS to sign you in; this computer keeps
only its own token, in the keychain (account-token). Signing out on the account page also ends your WorkOS
session in that browser. Ending a computer on the account page signs that computer out and ends its sync key.
Offers of Personal
Free has no banners, nags or limits. Portward mentions Personal in one line, at most once each, in three moments:
the first time you try to connect claude.ai or ChatGPT on the web (serve-http or serve-direct), create a
profile, or show a column to the AI anonymised or as totals. Tell the AI you don't want one again and that offer
stops for good on that computer. When Portward can't reach your account to check your plan, it offers nothing.
When Personal ends
Your profiles freeze: they keep applying exactly as they were (anonymised and totals included), so nothing the AI couldn't see becomes visible, but they can't be edited, created or applied to new connections. Wrapped servers keep running under them. claude.ai and ChatGPT on the web and sync stop. Your synced data is kept encrypted for 90 days, then deleted; the hosted route is stopped and the logins it holds are deleted too. When Personal is on again your profiles unfreeze, and within those 90 days everything synced comes back.
Download your data or delete your account (Personal)
On your account page (or ask the AI, which opens that page for you), "Download my data" gives you a JSON file of everything Portward's server holds for your account. Synced records and shares are in it as the encrypted copies the server keeps, since Portward has no key to read them; your readable history is the one on your computers.
Deleting your account needs you to sign in again on that page and type your email to confirm; the AI can't do it. It cancels your subscription at once (the rest of the period isn't refunded automatically) and removes from the server, straight away: your account and email, your synced records and keys, the shares you sent with their encrypted copies and opens, your sharing confirmations, and every computer's sign-in. History, saved pulls, rules and settings on your computers are not touched. Shares other people sent to your email address stay until they expire or their sender withdraws them: they are the sender's, so your address stays on them. Stripe keeps your invoices, and the server's encrypted backups are deleted after 35 days.
Support
Questions, or something here doesn't match what you see: email
support@portward.ai. Need this for your team? See https://portward.ai/teams.
Your Portward page
Ask your AI to "open my Portward page", or run uvx portward-free==0.1.0 page in a terminal. It shows your history,
saved pulls, block rules, who you shared with (and when each share expires), settings and, per conversation,
exactly what the AI was sent. You can block and unblock
tables and columns there, and turn keeping rows on or off; unblocking asks you to confirm first.
The page is served from your computer only: on 127.0.0.1, at an address with a random token made for each run, which Portward hands to your browser (or your terminal) and never to the AI. It answers only to its own address, so a website can't reach it by pointing its name at your computer, and it accepts changes only from its own forms. It runs no scripts and loads nothing from the internet. Its one outside link is "Need this for your team?".
Development
This repository is one package (portward-free, module portward_free). Source: https://github.com/hamzaelsiesy/portward-free
uv run pytest # tests (the install tests build the wheel and run it with uvx)
uv run portward-free # the MCP server over stdio
claude mcp add portward -- uv --directory /path/to/portward-free run portward-freeThe Claude Desktop extension is built on the OS and CPU it is for (CI builds all three: .github/workflows/ free-extension.yml). It needs uv, node and a C compiler (Xcode command line tools, or Visual Studio on Windows):
uv run python mcpb/build_mcpb.py --out dist # Nuitka-compiled, packed as dist/*.mcpb
PORTWARD_MCPB=dist/portward-0.1.0-macos-arm64.mcpb uv run pytest tests/test_mcpb.pyThe build signs the compiled files only when signing settings are present: PORTWARD_MACOS_SIGN_IDENTITY (and
PORTWARD_NOTARY_PROFILE to notarize) on macOS, PORTWARD_WINDOWS_CERT_SHA1 on Windows. Without them it is
unsigned, which is fine for testing but makes macOS and Windows warn on install.
Listing files: server.json (MCP registry), mcpb/manifest.json (Claude Desktop extension),
.claude-plugin/marketplace.json and plugin/ (Claude Code plugin).
When you change the version in pyproject.toml, change it in those files and this README too; the tests fail until
they agree.
Available Tools
77 toolsaccount_deleteA
Open the page where the user can download their Portward account data or delete their account, in their browser. It deletes nothing: the user signs in again there and confirms. Only call it when the user asks to download their account data, delete their account or leave Personal. History on this computer stays.
Inputs: no named parameters.
account_sign_inA
Sign this computer in to the user's Portward Personal account: opens the account page in their browser, where they sign in (emailed code, Google or GitHub) and approve. Then call account_status. Only call it when the user asks to sign in or to use their account.
Inputs: no named parameters.
account_sign_outA
Sign this computer out of the user's Portward account (the token is ended on the server and removed from the keychain).
Inputs: no named parameters.
account_statusB
Whether this computer is signed in to the user's Portward account, and as whom.
Inputs: no named parameters.
add_sourceA
Connect a source; adding a name again replaces it. The file kinds take path, the file's location, and are added only once the user says yes themselves (Portward asks them): 'sqlite' a SQLite file, 'csv' a CSV file (one table named after the file), 'excel' an .xlsx workbook (one table per sheet). 'postgres' and 'mysql' take host, port, database and user, never a password: the user types the password themselves where you can't see it, and it goes straight to the computer's keychain. Never ask for a password or connection string in the chat.
Inputs: kind (required), name (required), host, path, +3 more.
ai_logA
Show the AI log's summary (for 'what did my AI see?'): every read, with when, which AI app, the route, the profiles and versions that allowed it, the tables and columns at the level each was shown, and how many rows. Never the values. Optional start and end are dates (YYYY-MM-DD, both included).
Inputs: end, start.
apply_profileA
Apply a profile to a connection. Shows each grant as matched, hidden here instead (with why) or not in your data, with counts; refused only when nothing matches. From then on the AI sees only what the applied profiles grant on that connection, and its block rules stop applying. Several profiles on one connection add up. Switching from block rules, or showing more, asks the user first.
Inputs: source (required), profile (required).
approve_browserA
Approve the user's browser to build the proof report (what my AI saw) on their Portward account page (Personal, sync on). The user types the code the page shows where you can't see it; never ask for it in the chat. Only call it when the user asks to open or export the report in their browser.
Inputs: no named parameters.
approve_contextA
Ask the user to approve a context draft (see context_drafts): they see its text, can edit it, and say yes or no in their own prompt. Approved, it joins the profile as a new version and is given to the AI with the schema from then on.
Inputs: draft_id (required).
assumptionsB
What you (the AI) assumed when no definition covered a question, newest first: each assumption with the answer (pull) and question it was made for, and the definition it became, if the user turned it into one. Offer to turn an open one into a definition with define_assumption.
Inputs: limit, source.
blockB
Block a table, or one column of it, from the AI for good: it is never sent, whatever the query. Leave column out to block the whole table. Use this when the user asks to hide or protect data.
Inputs: table (required), source (required), column.
compareA
Compare two pulls from history (e.g. a pull and its tweak): rows added, rows removed, rows whose numbers changed, and totals that moved, from pull_id to other_pull_id. Uses the rows both pulls kept (see keep_rows), else re-runs both. Its rows go where a query's do: the results panel, or a capped preview with more_rows for the rest.
Inputs: pull_id (required), other_pull_id (required).
context_draftsB
The context drafts waiting for the user's approval: each draft's id, profile and what it's about (not its text, which isn't used until approved). approve_context asks the user about one.
Inputs: profile.
create_profileA
Create a profile: a named bundle of what the AI may see, for one job. grants name columns as schema.table.column or table.column (the AI then sees each in full); anonymised names columns the AI sees only as stand-ins (the same value always gets the same stand-in, so it can still filter, group and join on them; the user sees the real values in the panel); totals names columns the AI may only sum, average or count, with small groups left out (numbers only: on any other column it falls to hidden); tables grants whole tables, listing their columns now from source, so columns added later stay hidden. Each column gets one level. Anything no applied profile grants is hidden. Apply it to a connection with apply_profile.
Inputs: name (required), description (required), grants, source, +3 more.
define_assumptionB
Turn one of your assumptions (see assumptions) into a named definition: the user sees it with term, can edit both, and says yes or no in their own prompt. Saved, it joins the profile applied to that source as a new version (name profile when several are applied) and you're given it from then on.
Inputs: term (required), assumption_id (required), profile.
describe_sourceB
Browse one source's tables and columns, with the user's notes and which are blocked.
Inputs: source (required).
discard_draftC
Throw away a context draft the user doesn't want.
Inputs: draft_id (required).
dismiss_offerA
Stop one kind of Portward offer on this computer for good (kind as the offer gave it: "web", "profile" or "anonymised_or_totals"). Call it when the user says they don't want that offer again.
Inputs: kind (required).
draft_definitionA
Draft a named definition for a profile ("active customer", "MRR"): what the term means in the user's data, naming the tables and columns it uses. It waits on this computer for the user's approval and is used for nothing until then; ask them to review it with approve_context. Once approved, the definition is given with the schema and you must use it.
Inputs: term (required), text (required), profile (required).
draft_linkA
Draft a link for a profile: column (table.column) holds the same values as other_column of another table, in the same source or a different one (a buyer email and a CRM contact email, an order's customer_id and the customers' id). Once the user approves it (approve_context), you're told to join those tables on exactly these columns. Both columns must be granted by the profile. text may say how they match, in the user's words.
Inputs: column (required), profile (required), other_column (required), text.
draft_meaningsA
Draft what tables and columns a profile grants mean, from their schema and sample rows (pull a few first). Each draft waits on this computer for the user's approval and is used for nothing until then; then ask the user to review them with approve_context. Only tables and columns the profile grants can have a meaning.
Inputs: profile (required), meanings (required).
exportA
Export a past pull to a file on the user's machine: format 'csv' or 'xlsx' (Excel). Runs the pull's stored SQL again and writes every row; you get only the file's path.
Inputs: pull_id (required), format.
export_proof_reportA
Export the proof report, 'what my AI saw', for a date range: start and end are dates (YYYY-MM-DD, both included). Writes a PDF and a CSV with the same facts to the user's exports folder: per AI app and profile the tables and columns, levels and row counts, and every read. Never the values. Unsigned. You get the files' paths and the totals.
Inputs: end (required), start (required).
get_selectionA
Get the rows the user put in the chat from the Portward results panel: exactly the rows and columns they picked. Call it only with a selection id the user's message gave you ("use my selection sel_..."); don't guess ids or reuse a pull_id. You can read a selection again while it lasts (24 hours at most).
Inputs: selection_id (required).
get_startedA
The first-run guide: call it when the user is new or has no sources. It says the next step (connect a source, then a first pull) and gives a query to try. use_sample=true connects a small sample database for a user with no file to hand.
Inputs: use_sample.
historyB
Show the user's last pulls, newest first (for 'show my last pulls'). Each has an id that rerun takes.
Inputs: limit.
import_dictionaryA
Import a data dictionary the user already has (a spreadsheet, Word document, README or text file on this computer: .csv, .tsv, .xlsx, .docx, .md, .markdown, .txt) into a profile, as what its tables and columns mean. Portward reads the file, matches each entry onto a table or column the profile grants and shows the user the mapping; only what they confirm is saved. For entries named differently from the columns, pass mapping ({entry name: table.column, or table}).
Inputs: path (required), profile (required), mapping.
keep_rowsA
Turn keeping result rows on or off (off by default). When on, each new pull's rows are kept on this machine, encrypted with a key in the OS keychain, for 30 days; kept_rows shows them.
Inputs: on (required).
kept_rowsA
Show the rows a past pull returned, if rows were kept for it (see keep_rows), without running it again.
Inputs: pull_id (required).
lineageB
List a pull's lineage: the pull it tweaks (parent, and that one's ancestors) and the pulls that tweak it (children).
Inputs: pull_id (required).
list_profilesA
List the user's profiles: their grants, version and where each is applied.
Inputs: no named parameters.
list_rulesA
List the user's block rules: the tables and columns never sent to the AI. Leave source out for every source.
Inputs: source.
list_sourcesB
List the connected sources with the tables and columns the AI may use.
Inputs: no named parameters.
matching_login_sqlA
Write setup SQL for a read-only database login that can read exactly what a connection's applied profiles grant (Postgres or Snowflake), for the user or their DBA to run, so the database itself hides what isn't granted. login names a new login (default portward_); current_login tightens the login the connection uses now instead. The SQL has a placeholder where the password or key goes; Portward doesn't keep it.
Inputs: source (required), login, current_login.
more_rowsA
Send more rows of a pull than its preview. The user is asked first, every time; only call this when the preview isn't enough. rows is how many more (default 100, at most 500). Set approved only after you asked the user the question this tool gave you and they said yes.
Inputs: pull_id (required), rows, approved.
open_pageA
Open the user's Portward page in their web browser, on this computer: their history, saved pulls, block rules, settings and what the AI was sent. Call it when the user asks to see or manage those. The page opens for the user; you aren't given its address.
Inputs: no named parameters.
panel_rowsA
The results panel reads a pull's rows. App-only: the model never sees this result.
Inputs: pull_id (required).
put_in_chatC
The results panel records the user's selection (row positions, column names) and gets the short chat message it posts: the selection's id, never its values. App-only.
Inputs: rows (required), columns (required), pull_id (required).
queryB
Run one read-only SQL SELECT against a source. question is the user's question. When no definition you were given covers part of the question, say what you assumed in assumptions, one short sentence each ("active customer means an order in the last 90 days"); they're kept with this answer on the user's computer, for them to review and turn into definitions.
Inputs: sql (required), source (required), question (required), assumptions.
remove_sourceC
Remove a connected source, and its password from the keychain.
Inputs: name (required).
rerunA
Re-run a past pull from history exactly: its stored SQL, unchanged, on the same source.
Inputs: pull_id (required).
run_savedA
Re-run a saved pull by its name (see saved_pulls), exactly as it was saved.
Inputs: name (required).
saved_pullsA
List the saved pulls by name. run_saved re-runs one.
Inputs: no named parameters.
save_pullA
Save a pull from history under a name (e.g. 'Monthly revenue by region') so it can be re-run by name with run_saved. Saving a name again moves it to this pull.
Inputs: name (required), pull_id (required).
save_secretB
The panel's form sends what the user typed (a database password, the sharing code) for the ask in its _meta (or read with secret_request). App-only: the model never sees this tool, its input or result.
Inputs: secret (required), request (required).
secret_requestB
The panel reads the form for an open ask (its request_id, in the visible result) when the host didn't hand it the result's _meta. App-only: the model never sees this tool or its result.
Inputs: request_id (required).
sent_to_aiA
Show what the AI was sent (for 'what did you see?'). With no conversation_id, list the conversations, newest first; with one, every response sent in it, in order.
Inputs: conversation_id.
set_noteA
Write or edit the user's note on what a table, or one of its columns, means. Leave out column for the table's own note; an empty note removes it.
Inputs: note (required), table (required), source (required), column.
settle_contextA
When list_sources says two profiles describe a column or term differently, ask the user which one the AI should use. The pick is remembered until either description changes.
Inputs: about (required), source (required).
start_profile_from_block_rulesB
Turn a connection's Free block rules and notes into a starting profile and switch the connection to it: the profile grants in full, by name, every column not blocked now, and the notes on those become its context (notes on blocked tables and columns are dropped). name defaults to the connection's name. Asks the user first; if they decline, the connection stays on block rules and nothing is saved.
Inputs: source (required), name.
sync_new_recovery_keyA
Make a new recovery key for the user's synced data and show it to them in their browser (the old one stops working; the data key is replaced too, and the other computers move over on their next sync). Only when the user asks, e.g. they lost theirs.
Inputs: no named parameters.
sync_nowA
Sync history, saved pulls, notes, rules and profiles with the user's other computers now (encrypted; Personal).
Inputs: no named parameters.
sync_statusA
Whether sync is on for this computer, when it last ran, and anything it is holding.
Inputs: no named parameters.
sync_turn_offA
Stop syncing on this computer. Nothing is deleted, here or on the sync service.
Inputs: no named parameters.
sync_turn_onA
Turn on encrypted sync of history, saved pulls, notes, rules and profiles with the user's other computers (Personal). On the first computer it shows the user a recovery key in their browser; on another it asks the user for that key where you can't see it (never ask for it in the chat). Only call it when the user asks to sync.
Inputs: no named parameters.
test_sourceB
Test a connected source: says whether it opens, and if not, why.
Inputs: name (required).
tweakA
Tweak a past pull ('same, but last quarter'): run sql, your change to that pull's stored SQL, on the same source. The reply shows the SQL difference; the new pull is saved as a child of the old one. question is the user's request (defaults to the old). When no definition you were given covers part of the question, say what you assumed in assumptions, one short sentence each ("active customer means an order in the last 90 days"); they're kept with this answer on the user's computer, for them to review and turn into definitions.
Inputs: sql (required), pull_id (required), question, assumptions.
unapply_profileB
Take a profile off a connection. The connection stays on profiles: with none left, the AI sees nothing of it (use_block_rules goes back to block rules).
Inputs: source (required), profile (required).
unblockA
Remove a block rule so the AI can read that table or column again. Portward asks the user to confirm it themselves; only call this when the user asks for it.
Inputs: table (required), source (required), column.
update_passwordA
Have the user enter a new password for a database source (when it changed, or test_source says it's missing or wrong). Never takes the password: the user types it where you can't see it. The old password stays until the new one works.
Inputs: name (required).
update_profileA
Save a new version of a profile: rename it, change its description, add grants in full (add, or whole tables from source), anonymised (anonymised: the AI sees stand-ins) or totals only (totals), or remove grants (remove). Adding a column already granted changes its level. Each save publishes a whole new version. Letting the AI see more through a profile that's applied somewhere asks the user first.
Inputs: profile (required), add, name, remove, +5 more.
usage_choiceC
The user turned usage counts on or off in the results panel. App-only.
Inputs: on (required).
usage_countsA
Anonymous usage counts: with no argument, say whether they're on and exactly what is counted and would be sent next. on=false turns them off (and deletes the counts kept so far); on=true turns them back on once the user has been asked (Portward asks them itself).
Inputs: on.
usage_seenC
The results panel showed the user the usage-counts question. App-only.
Inputs: no named parameters.
use_block_rulesA
Switch a connection from profiles back to Free's block rules (anything not blocked is seen). Asks the user first; only call it when they ask.
Inputs: source (required).
value_sourceB
The results panel asks where one value came from (its row position and column name): the source tables and columns behind it and the query's filters. App-only.
Inputs: row (required), column (required), pull_id (required).
web_routeA
Put a connection on the 'hosted' route (Portward runs this: works with this computer off; its login and applied profiles go, sealed, to Portward's hosted engine) or the 'direct' route (the AI reaches this computer; Portward never sees your data). Tell the user which, in those words, before choosing hosted. Personal only.
Inputs: route (required), source (required).
web_routesC
List each connection's web routes for claude.ai and ChatGPT on the web: which it may use (files and databases only this computer reaches: direct only) and which it's on. Also hands the hosted engine anything it's missing and brings its AI log in.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 77 tools
The core data path (query, rerun, run_saved, tweak, compare, kept_rows) is documented carefully and mostly separable, but with 77 tools several boundaries blur: use_block_rules vs unapply_profile, kept_rows vs panel_rows vs more_rows, assumptions vs define_assumption vs draft_definition, and share vs share_sign_in vs share_confirm. A third of the tools are explicitly app-only (never seen by the model), which trims the practical surface but the remaining set still has clusters where an agent must re-read descriptions to choose.
Everything is snake_case, which is good, but verb conventions vary widely: prefixed verbs (list_sources, get_selection, set_note, remove_source) sit alongside bare verbs (query, tweak, compare, block, share, export) and bare nouns (history, lineage, assumptions, shares, panel_rows, context_drafts). Readable, but not a single predictable pattern an agent can rely on.
77 tools is far past what an agent-facing surface should carry; even discounting the app-only panel/secret tools, the model still faces 60+ options across querying, sharing, profiles, context drafting, sync, account and routing. It behaves like several servers glued together, and the volume itself drives misselection.
Coverage of the domain is genuinely deep: sources (add/test/describe/remove), querying and history, saved pulls, sharing with expiry/withdrawal, profiles and grants, block rules, context drafts and definitions, sync, account, and export/proof reporting. Only minor gaps remain, e.g. no way to delete or prune history entries or a pull's children.
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Read-only MCP for AI usage profiles, leaderboards, stats, and docs; no writes or private data.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables AI agents to explore database schemas and execute safe queries on PostgreSQL and MySQL.-
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables LLMs to safely explore and query any SQLite database via natural language. It exposes tools for listing tables, describing schemas, and executing SELECT/WITH queries with built-in safety guards like write prevention and row limits.MIT
- AlicenseAqualityCmaintenanceRead-only MCP server that lets AI agents safely query SQLite, PostgreSQL, and MySQL/MariaDB. Enforces read-only transactions with column masking, row caps, query timeouts, EXPLAIN-based cost rejection, and rate limiting.737 npm2MIT
- AlicenseNot gradedqualityCmaintenanceRead-only MCP server for SQLite databases, enabling AI assistants to safely query and inspect database schemas without write access.MIT