Sancho Fetch

io.github.panth-net由 GitHub 帳號 panth-net 發布v0.3.1更新於 Oct 24, 2026

Local-first public-data MCP server that writes inspectable records and working files.

概覽

AI 產生的概覽

本地優先的 MCP 伺服器,讓助理從 120 多個公開資料來源抓取資料,並存成電腦上可檢視的檔案。

可以做什麼
用自然語言請助理從 Census、World Bank、FDA、USGS、FEMA 等眾多政府與開放資料來源抓取公開資料,許多來源不需要 API 金鑰。每次抓取都會在工作資料夾的下載目錄產生可開啟的工作檔案,並在工作區快取中保留一份忠實封存,重複請求可重用快取。表格以 Excel 檔案保存且代碼維持完整,地圖保留為 GeoJSON 或 KML,檔名帶日期前綴。可把自有資料來源新增為自訂模組,更新時不會被覆寫,並可保存可重複使用的工作流程。透過助理檢查安裝狀態,以及更新或解除安裝此工具。
適用情境
適合請助理取得公開資料集(例如縣級健康或人口資料),並交付存放在本機的試算表或地圖檔案。最適合在桌面 AI 應用程式的程式碼模式中工作、偏好本機檔案而非雲端儲存的使用者。
執行需求
以本機程序執行,透過 uv 從 PyPI 安裝,uv 也會提供相容的 Python;桌面應用程式也可使用 .mcpb 套件。首次安裝需要網路連線。API 金鑰為選用,僅特定資料來源需要,放在 sancho-workspace 資料夾的本機 .env 檔案中。僅限桌面 AI 應用程式;一般聊天無法存取本機安裝。
安裝前請注意
抓取請求會從你的電腦直接送往所選的公開資料提供者,本機 .env 中的提供者金鑰也只會傳送給該提供者。README 提醒不要把金鑰貼到聊天中,並說明工具只讀取金鑰名稱而非值。抓取會在你的資料夾寫入檔案與快取副本,更新會遷移工作區並提供備份與回復。解除安裝會保留工作區與下載檔案,除非你主動刪除資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sancho Fetch,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Sancho Fetch]

Sancho Fetch

Ask your AI for public data. Get real files on your computer.

The fastest way in: tell your AI

Open your AI's code mode -- Claude desktop app -> Code tab, or ChatGPT desktop app -> Codex -- pick any folder, and paste this:

Install Sancho Fetch from PyPI (uv tool install sancho-fetch) and set it up on this computer. If uv isn't installed, tell me, then install it first. When you're done, tell me whether the install succeeded. Then explain in plain English, no jargon: what the .env file is, how to use it, where it is on my computer, and open it for me so I can paste API keys straight into it. Give me a few examples of data sources that need a free API key and a few examples of sources that don't need a key. Tell me where my downloaded data gets saved, and how I update Sancho later. Then run a short example data fetch using the World Bank so I can see where the data was saved. Finally tell me a few natural language examples I can tell you to fetch data so I can get a feel for how to use sancho-fetch and remind me that 1) I can use it anywhere as long as I'm in a LLM Desktop app's Code tab (e.g. ChatGPT Desktop or Claude Desktop), and 2) that I can ask AI to add new data sources by itself since sancho-fetch is built in a way that it's easily extensible (aka you can add more to it and the AI will do the heavy lifting and connect the new data source).

That's the whole install.

You do not need to download or clone this repository. The two commands the AI runs are:

bash
uv tool install sancho-fetchsancho setup

Install once, use everywhere. Sancho installs once on your computer and connects to the AI apps it finds (Claude Desktop, ChatGPT/Codex, VS Code, Cursor). At the end of setup it tells you plainly which apps are ready and which just need a restart or a click.

To use Sancho, just ask for data and mention "sancho" in plain English, or type /sancho in Claude Code to feel cool.

What it does

  • In your AI's Code mode you ask: "get county-level asthma rates for Ohio." You can be working in any folder -- Sancho always knows where its home folder is.
  • Your AI uses Sancho to pull from 120+ public sources (Census, World Bank, FDA, USGS, FEMA, ...) and hands you a file that opens in Excel.
  • Everything is saved on your computer.

Before you begin

The normal prerequisite is uv. uv installs Sancho in isolation and can obtain a compatible Python without replacing your computer's system Python. First setup needs an internet connection. API keys are not required for installation or the World Bank example; provider-specific keys can be added later.

Get started (about 2 minutes)

Install straight from PyPI.

1. Open your AI's code mode.

  • Claude: Claude desktop app -> Code tab -> new session -> pick any folder where you want your data to live.
  • ChatGPT: ChatGPT desktop app -> Codex -> open that folder.

2. Paste the install request from the top of this page.

The AI installs everything, shows you your first data file, and walks you through where everything lives.

3. Restart the apps Sancho asks you to restart. Setup ends with a short report; if an app needs a restart or one extra click, it says so in plain words.

NOTE: Before using, make sure to add API keys for any sources you want to use.

Many sources need no key (World Bank, USGS, FEMA, openFDA, ...). Your AI will tell you when an API key is needed. You can either:

  1. Open the .env file in the sancho-workspace folder and paste your key there; or
  2. Ask your AI to open the keys file for you (sancho env open). Paste the key into the opened file, don't paste your key into the chat.

Setup normally creates .env from .env.example. If .env is missing, sancho env open creates and opens it. To do this manually, copy .env.example in the same folder, keep the original template, and name the copy .env.

Both files may be hidden:

  • macOS Finder: press Cmd+Shift+. (Command + Shift + period).
  • Windows File Explorer: select View -> Show -> Hidden items.

@Developers, fyi Sancho is designed to read key names only, not values.

Prefer the GitHub repository, or installing without an AI app?

For contributing, custom module development, or offline installs, work from the repository folder instead. Install GitHub Desktop (free), then on this repository's page click Code -> Open with GitHub Desktop -> Clone.

Note: Avoid placing the Github folder in a folder that is within iCloud/OneDrive (e.g. Documents folder in iCloud). This causes issues with file syncing and speed.

Then double-click installers/Install Sancho.command (macOS) or installers/Install Sancho.bat (Windows); on Linux run bash installers/setup.sh.

  • macOS blocks the first open (the installer is not notarized): System Settings -> Privacy & Security -> scroll to the blocked-file message -> Open Anyway -> open it again.
  • Windows: at "Windows protected your PC", click More info -> Run anyway.

Everyday use

  • In Claude Code / Codex, just ask for data. In Claude Code you can also type /sancho and /sancho-update directly.

After installation, use a Code session. Sancho is installed computer-wide, so you do not need to add the sancho-fetch folder in future sessions. In Claude Desktop, select the Code tab. In Codex, start a Code chat. Regular chats cannot access your local Sancho installation.

  • There are system instructions to make Sancho return non-technical details of each data pull, so if you want these technical details returned, tell your AI:

"turn on Sancho developer mode."

  • Something off? Ask your AI to run sancho ready -- it checks your setup and reports what's wrong, without changing your setup. To actually fix problems, ask your AI to run sancho doctor --fix.

Where your files land

text
your folder/  sancho-downloads/    # <-- files you have downloaded via chatting with AI  sancho-workspace/    source/            # managed data modules    custom/            # your own modules -- never overwritten when updating Sancho    playbooks/         # your repeatable workflows    fetched-data/      # faithful archive of every fetch (don't edit - this is a cache so we don't have to use API calls unnecessarily)    analysis-data/     # your derived work    outputs/           # reports, dashboards, exports    logs/              # what Sancho did, when, and why    update-backups/    # snapshots before every update    .env               # your API keys (never logged, never printed)

Every fetch writes a working file you open -- into sancho-downloads/ in the folder that you're working in -- and a faithful archive/cache copy in sancho-workspace/fetched-data/ so repeat requests reuse cached data.

Tables arrive as Excel .xlsx with codes like 01003 kept intact; maps stay GeoJSON/KML; nothing is converted in a way that loses information. Filenames start with the date: 2026-06-08_194211_alabama-population.xlsx.

Add your own data sources

Tell your AI:

Create a Sancho module for [that API / that agency's data / this file I receive every month].

It's built under custom/, works like the built-in sources, and Sancho updates never overwrite the folder.

A good example of this is, Sancho fetches from Washington DC's and New York City's open data portals, which use a common API/open data portal format. The AI can be asked to create a module for other cities and will intelligently check on its own whether the new city uses the same format or not, and if it does, will reuse the same module code format (and otherwise, create a new one). You'd be surprised at how many cities use the same format so give it a try if you're working in a geographic regional level that is not already covered by Sancho's built-in modules.

Updates

Just ask your AI:

Update Sancho.

The AI upgrades the sancho command from PyPI (uv tool upgrade sancho-fetch) and then migrates your workspace safely, with a backup and a rollback command.

Working from the GitHub repository instead? In GitHub Desktop: Fetch origin -> Pull origin, then tell your AI "update Sancho."

When updating, your own files (custom/, playbooks/, fetched-data/, .env, ...) are never touched.

If you want Sancho to stop mentioning new versions in chats (which it will do once every 2 weeks), simply set SANCHO_UPDATE_NUDGE=false in .env to turn it off.

Uninstalling

Same as installing: paste one request to your AI in a Code session:

Uninstall Sancho Fetch from this computer: run sancho uninstall, then uv tool uninstall sancho-fetch. Keep my sancho-workspace and sancho-downloads folders -- that is my data and my API keys. Tell me when it's done and what was removed.

(Those two commands are the whole uninstall if you'd rather run them yourself.)

Sancho only removes what it installed: its skills and its entries in your AI apps. Anything you edited or created yourself is left alone and reported.

Your sancho-workspace/ folder (fetched data, custom modules, .env keys) and your sancho-downloads/ files are always kept. Deleting data is a separate, deliberate step that asks for confirmation first -- ask your AI, or run sancho uninstall --help to see how.

Privacy Policy

Sancho runs on your computer and keeps your data there. Fetches go directly from your machine to the public data provider you chose; API keys are read from your local .env and sent only to that provider. Sancho has no telemetry. Full details: docs/PRIVACY.md.

More documentation

Hosting your own version of Sancho

While Sancho is designed to run on your own computer, you can also host it on a server so that users can access it via web rather than needing Claude/Codex desktop apps.

The idea with hosting was primarily to support organizations hosting hands-on workshops for users who may not have the technical skills to install Sancho on their own computers.

For AI assistants

If you are an AI assistant, do not operate from this quick start. Read README_ALL_INSTRUCTIONS.md, then follow CLAUDE.md or AGENTS.md.

License

Code is licensed under MPL 2.0; documentation under CC BY 4.0 unless noted. The Sancho name, logo, and brand assets are protected separately -- see LICENSE, NOTICE, LICENSE-DOCS.md, and INTENDED_USE.md.

來源:README.md,提交 6fe3db5

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.3.1最新Sep 18, 2026
  2. v0.3.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分