Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Place search, directions, isochrones & area analysis across 10 map providers. No API key to start.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GOOGLE_MAPS_API_KEY, YELP_API_KEY, CENSUS_API_KEY, FOURSQUARE_API_KEY, GEOWIRE_INTERNAL_CSV, GEOWIRE_CONFIGค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"geowire": {
"command": "npx",
"args": [
"-y",
"@geowirehq/mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "ใส่ค่าของคุณ",
"YELP_API_KEY": "ใส่ค่าของคุณ",
"CENSUS_API_KEY": "ใส่ค่าของคุณ",
"FOURSQUARE_API_KEY": "ใส่ค่าของคุณ",
"GEOWIRE_INTERNAL_CSV": "ใส่ค่าของคุณ",
"GEOWIRE_CONFIG": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add geowire --env GOOGLE_MAPS_API_KEY='ใส่ค่าของคุณ' --env YELP_API_KEY='ใส่ค่าของคุณ' --env CENSUS_API_KEY='ใส่ค่าของคุณ' --env FOURSQUARE_API_KEY='ใส่ค่าของคุณ' --env GEOWIRE_INTERNAL_CSV='ใส่ค่าของคุณ' --env GEOWIRE_CONFIG='ใส่ค่าของคุณ' -- npx -y @geowirehq/mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"geowire": {
"command": "npx",
"args": [
"-y",
"@geowirehq/mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "ใส่ค่าของคุณ",
"YELP_API_KEY": "ใส่ค่าของคุณ",
"CENSUS_API_KEY": "ใส่ค่าของคุณ",
"FOURSQUARE_API_KEY": "ใส่ค่าของคุณ",
"GEOWIRE_INTERNAL_CSV": "ใส่ค่าของคุณ",
"GEOWIRE_CONFIG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"geowire": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@geowirehq/mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "ใส่ค่าของคุณ",
"YELP_API_KEY": "ใส่ค่าของคุณ",
"CENSUS_API_KEY": "ใส่ค่าของคุณ",
"FOURSQUARE_API_KEY": "ใส่ค่าของคุณ",
"GEOWIRE_INTERNAL_CSV": "ใส่ค่าของคุณ",
"GEOWIRE_CONFIG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
GEOWIRE_INTERNAL_CSV envGEOWIRE_CONFIG envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub geowire ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GOOGLE_MAPS_API_KEY, YELP_API_KEY, CENSUS_API_KEY, FOURSQUARE_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.1) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Give any AI agent real-world location intelligence in 5 minutes — no API key required.
One interface for place search, directions, and area/market analysis across every map provider.
GeoWire is an open-source geo intelligence gateway that sits between AI agents and map/place data providers (OpenStreetMap, Google, Yelp, Foursquare, US Census, your own data) and exposes them through a single MCP server, REST API, and SDK. One interface for place search, geocoding, directions & distance matrices, and commercial-area analysis (density, ratings, demographics) — with provider fallback, multi-provider merge + dedup, cost budgets, and a policy engine that enforces each provider's caching/attribution terms.
Published on npm — MCP · REST · CLI · SDK all functional. 10 providers, 8 operations.
Honest by design: OpenStreetMap (the zero-key default) is a great
*geocoder* — strong on place names, addresses, and landmarks — but thin on
category words ("coffee", "pharmacy"), ratings, and hours. For US/Western
commercial data, add a Google, Yelp, or Foursquare key (BYOK) — GeoWire merges
them and tells you which source every field came from. Directions run key-free
on OpenStreetMap routing (OSRM); US demographics come from the Census (free key).
Contents: Why · Quickstart · MCP tools · REST · Anatomy of a response · Config · Providers · Recipes & examples · Roadmap · Architecture
| Direct integration | Single-provider MCP | GeoWire | |
|---|---|---|---|
| Unified place schema | ❌ per-provider code | ❌ | ✅ |
| Provider fallback on failure | ❌ | ❌ | ✅ |
| Multi-provider merge + dedup | ❌ | ❌ | ✅ |
| Cost budgets & routing | ❌ | ❌ | ✅ |
| Works without any API key | ❌ | depends | ✅ (OSM by default) |
| Self-hosted | — | depends | ✅ |
| Your own place data as a provider | ❌ | ❌ | ✅ |
| Transparent provenance (which source, what cost) | ❌ | ❌ | ✅ (every response) |
**Not a Google replacement — it *uses* Google. The thing no single provider can do: merge your own store data + Google + OSM** into one deduped record, with per-field provenance (your name is authoritative, Google adds ratings, OSM adds coordinates). Real run below:
Once your agent can find places, it can reason about *areas*. One analyze_area call turns a point + radius into a commercial-district read — category density, competition, the rating landscape, and (in the US) demographics:
// "Is this a good block for a new café?" — SF, 1 km radius
{ "center": { "latitude": 37.7749, "longitude": -122.4194 }, "radiusMeters": 1000, "categories": ["cafe", "restaurant", "bar"] } // → per-category counts + density/km², avg rating (Google/Yelp), price mix, // an activity proxy (Yelp review volume), and Census demographics for the tract.
Same gateway also does directions & distance matrices and travel-time isochrones — key-free via OSRM — so an agent can rank candidates by drive time and answer catchment questions like *"what's within a 15-minute drive of this address?"* See Recipes.
Add this to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": { "geowire": { "command": "npx", "args": ["-y", "@geowirehq/mcp"] } } }
Then ask: *"Where is the Golden Gate Bridge?"*, *"Find coffee within 2 km of 37.7749, -122.4194 (San Francisco)."*, or *"How do I drive from downtown SF to Fisherman's Wharf?"* Works with zero API keys — OpenStreetMap + OSRM routing are the defaults. Add "env": { "GOOGLE_MAPS_API_KEY": "..." } (or YELP_API_KEY) for ratings, reviews, and hours, and "CENSUS_API_KEY" for area demographics. See more MCP client configs.
npx @geowirehq/cli search "Golden Gate Bridge" # terminal search with a results table
npx @geowirehq/cli search "coffee" --near 37.7749,-122.4194 --radius 2000 # near a coordinate npx @geowirehq/cli reverse 37.8199,-122.4783 # coordinate → nearest place npx @geowirehq/cli route 37.7749,-122.4194 37.8083,-122.4156 # driving directions (no key, OSRM) npx @geowirehq/cli get google:ChIJ... # one place by reference (getPlace-capable provider) npx @geowirehq/cli # start the REST + MCP server (zero-config) npx @geowirehq/cli init # interactive setup wizard (.env + config) npx @geowirehq/cli test # check provider connections
Add --json to any command for the full response (results + provenance meta).
docker run -p 4980:4980 geowire/geowire
curl -X POST http://localhost:4980/v1/places/search \ -H 'content-type: application/json' \ -d '{"query":"coffee","near":{"latitude":37.7749,"longitude":-122.4194},"radiusMeters":2000}'
Or with docker compose up (see docker-compose.yml). API docs at /docs.
import { createGeoWire } from "@geowirehq/core";
import { createNominatimProvider } from "@geowirehq/provider-nominatim";
const geo = createGeoWire({ providers: [createNominatimProvider()] }); const { results, meta } = await geo.searchPlaces({ query: "coffee", near: { latitude: 37.7749, longitude: -122.4194 }, radiusMeters: 2000, });
Full embedded-SDK guide: examples/typescript-sdk.md.
| Tool | Description |
|---|---|
search_places | Natural-language + coordinate/region place search |
get_place | Details by provider:providerPlaceId reference |
geocode_address | Address → coordinates (+ normalized address) |
reverse_geocode | Coordinates → nearest address |
get_directions | Route between waypoints (distance, time, legs) — no key (OSRM) |
distance_matrix | N×M travel distances/times — rank candidates by drive time — no key |
analyze_area | Commercial-area analysis: category density, competition, rating landscape, demographics |
get_isochrone | Travel-time reachability polygon ("what's within a 15-min drive") — no key (OSRM) |
get_demographics | Population / age / income for a coordinate's area (US Census, free key) |
list_geo_providers | Active providers, capabilities, status (agent self-awareness) |
Every response includes both a human-readable summary and structuredContent (schema-valid JSON).
| Method | Path | |
|---|---|---|
| POST | /v1/places/search | search |
| GET | /v1/places/{ref} | place details (provider:id) |
| GET | /v1/geocode?address= | geocode |
| GET | /v1/reverse-geocode?lat=&lon= | reverse geocode |
| POST | /v1/directions | directions between waypoints (no key) |
| POST | /v1/distance-matrix | N×M travel distance/time matrix (no key) |
| POST | /v1/analyze-area | commercial-area analysis (density, competition, ratings, demographics) |
| POST | /v1/isochrone | travel-time reachability polygon (no key) |
| GET | /v1/demographics?lat=&lon= | area demographics (US Census, free key) |
| GET | /v1/providers | list providers |
| GET | /v1/health | health check |
| GET | /metrics | Prometheus metrics |
| GET | /docs | Swagger UI (OpenAPI 3.1) |
| POST | /mcp | MCP over Streamable HTTP |
Optional Bearer auth: set GEOWIRE_API_KEYS=key1,key2.
No black box. Every response carries a meta block: which providers were used / skipped / failed (and why), dedup counts, cache status, estimated cost, and per-field sourcing — so you always know where each value came from.
{
"results": [{ "id": "gwp_CvWvRZrFtegkJPxP9CW0", "name": "Golden Gate Bridge", "location": { "latitude": 37.8199286, "longitude": -122.4782551 }, "sources": [{ "provider": "nominatim", "providerPlaceId": "way/27385590", "fields": ["name", "location", "categories", "address"] // ← what this source contributed }], "attributions": ["© OpenStreetMap contributors"] }], "meta": { "providersUsed": [{ "provider": "nominatim", "resultCount": 1, "latencyMs": 2449 }], "providersSkipped": [], // e.g. { provider: "google", reason: "MISSING_CREDENTIALS" | "QUOTA_EXCEEDED" } "providersFailed": [], // e.g. { provider: "google", reason: "TIMEOUT" } "strategy": "first-success", "cache": { "hit": false } // merging adds: "dedup": { "before": 3, "after": 1 } // paid provider: "estimatedCostUSD": 0.032 } }
After a merge, sources[].fields shows (say) the phone came from Google while the coordinates came from OSM. Walkthrough: docs/recipes.md.
geowire.config.yaml:
providers:
nominatim: { enabled: true } # default ON, no key (search/geocode) osrm: { enabled: true } # default ON, no key (directions) google: { enabled: true, apiKey: ${GOOGLE_MAPS_API_KEY} } yelp: { enabled: true } # env YELP_API_KEY (US/Western business & reviews) census: { enabled: true } # env CENSUS_API_KEY (US demographics, free) kakao: { enabled: true } # env KAKAO_REST_API_KEY (KR) internal: { enabled: true, source: ./my-places.csv, priority: 100 } routing: defaultStrategy: merge # first-success | merge | cost-aware | weighted | fastest providerWeights: # for weighted: order by priority·cost·coverage priority: 0.5 cost: 0.3 coverage: 0.2 budget: perRequestMaxUSD: 0.10 # over-budget paid providers are skipped, free ones used
Keys come from the environment (${VAR}), never committed in plaintext.
| Provider | Key? | Capabilities |
|---|---|---|
@geowirehq/provider-nominatim (OpenStreetMap) | none | search, geocode, reverseGeocode |
@geowirehq/provider-osrm (OpenStreetMap routing) | none | route, distanceMatrix |
@geowirehq/provider-google (Maps Platform) | BYOK | search, geocode, reverseGeocode, getPlace, route, distanceMatrix |
@geowirehq/provider-kakao (카카오맵, KR) | BYOK KAKAO_REST_API_KEY | search, geocode, reverseGeocode |
@geowirehq/provider-naver (네이버 지역검색, KR) | BYOK NAVER_CLIENT_ID+NAVER_CLIENT_SECRET | search, geocode |
@geowirehq/provider-baidu (百度地图, CN) | BYOK BAIDU_MAP_AK | search, geocode, reverseGeocode |
@geowirehq/provider-foursquare (global POI) | BYOK FOURSQUARE_API_KEY | search, getPlace |
@geowirehq/provider-yelp (US/Western business, ratings & reviews) | BYOK YELP_API_KEY | search, getPlace |
@geowirehq/provider-census (US demographics) | BYOK CENSUS_API_KEY (free) | demographics |
@geowirehq/provider-internal (your CSV) | none | search |
Regional providers make Korea (Kakao/Naver) and China (Baidu) coverage first-class where OSM is thin and Google has gaps — Baidu returns BD-09 coordinates, which GeoWire converts to WGS84 automatically. Merge them all + your own store data into one deduped
ตัดมาแค่ช่วงต้น อ่านต่อใน repo