setup-location-memory

setup-location-memory is a skill for Claude Code from michelgrolet/tars-location-mcp. It costs 59 tokens per session (869 once invoked), scanned A, original, MIT.

A setup tool for a private location archive: a database that stores the user's past positions.

In plain words
What is it for?
It helps import location-history data, start a live location feed from OwnTracks, check archive status, and fix missing or broken location tools.
Why use it?
It helps install or repair the database, its data structure, configuration, and connection to the agent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the location-memory plugin — 3 skills, 1 MCP server shipped together

Good fit It helps import location-history data, start a live location feed from OwnTracks, check archive status, and fix missing or broken location tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michelgrolet/tars-location-mcp/setup-location-memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add michelgrolet/tars-location-mcp --skill setup-location-memory
Clone the repo
git clone --depth 1 https://github.com/michelgrolet/tars-location-mcp

Made for: Claude Code.

Or install location-memory, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-location-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/michelgrolet/tars-location-mcp/setup-location-memory/github.svg)](https://agentmods.dev/skills/michelgrolet/tars-location-mcp/setup-location-memory)
Your own site
<a href="https://agentmods.dev/skills/michelgrolet/tars-location-mcp/setup-location-memory"><img src="https://agentmods.dev/badge/skills/michelgrolet/tars-location-mcp/setup-location-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-location-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/michelgrolet/tars-location-mcp/setup-location-memory"><img src="https://agentmods.dev/badge/skills/michelgrolet/tars-location-mcp/setup-location-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 869 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.00869
Opus 5 $0.00030 $0.00434
Sonnet 5 $0.00012 $0.00174
Haiku 4.5 $0.00006 $0.00087

Measured 7d ago against content hash b4ecb12ca4d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

setup-location-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-location-memory/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set up location memory

Four things have to be true: a Postgres to write to, the schema in it, an env file the server can find, and the MCP server registered with the agent. Check them in that order, because each one's error looks like the one before it.

1. Where the config lives

cat ~/.config/tars-location/.env

LOCATION_DATABASE_URL is required. LOCATION_GEOCODER_CONTACT has no default and nothing geocodes without it: Nominatim's usage policy asks for an address they can reach you at, and an anonymous scraper gets blocked. The rest have defaults, listed in .env.example.

If there is no database yet, a container on the same machine is enough:

docker run -d --name location-db -e POSTGRES_PASSWORD=local -p 5432:5432 postgres:16

2. The schema

tars-location migrate
tars-location status

migrate is idempotent, so running it again after an upgrade is the normal case. status prints what the archive holds per source and every gap it knows about; run it after every step below and read the counts rather than assuming.

3. Fill it

The past. Google keeps Timeline on the phone now, so a Takeout gives you settings only. The export lives at Settings > Location > Location services > Timeline > Export Timeline data, and produces one JSON file.

tars-location import ~/Downloads/location-history.json --geocode 200
tars-location detect-trips

Four export shapes are handled and every insert is on conflict do nothing, so re-importing an overlapping export is safe and adds only what is new. Geocoding is deliberately separate from the insert, because Nominatim allows one call a second and an export brings a thousand new places. Drain the rest on a timer:

tars-location enrich --geocode 25

The present. OwnTracks, in HTTP mode, with the token as the password under Authentication:

tars-location token add --label pixel
tars-location serve --port 8080

The endpoint refuses to bind anything but loopback unless you tell it there is TLS in front, because a bearer token over plain HTTP is a token in every hop's logs. Put a reverse proxy there before exposing it.

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 75 lines · 59 tokens per session scan A b4ecb12ca4d4

Subscribe to this mod's changes

setup-location-memory is a skill published in the GitHub repository michelgrolet/tars-location-mcp (0 stars, last pushed 14d ago), licensed MIT. It adds 59 tokens to every session and 869 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

orchardcore-ai-memory-elasticsearch

Skill for indexing CrestApps Orchard Core AI Memory with Elasticsearch. Covers memory field mappings, dense vectors, k-nearest-neighbor retrieval, default query fields, user isolation, and Elasticsearch operations. Use this skill when requests mention AI Memory Elasticsearch, AIMemoryElasticsearchIndexProfileHandler…

CrestApps/CrestApps.AgentSkills · 130 tokens

crestapps-core-ai-memory

Skill for durable user memory, safety validation, and memory-aware orchestration in CrestApps.Core.

CrestApps/CrestApps.AgentSkills · 25 tokens

lore-onboard

First-time setup wizard for LoreConvo. Verifies the MCP server is connected, the database is accessible, hooks are configured, and runs a test save/load cycle. Use when the user says "set up loreconvo", "onboard", "/lore-onboard", "verify loreconvo", "test loreconvo setup", or after first installing the plugin.

labyrinth-analytics/loreconvo · 81 tokens

nlqdb-docs-memory

Turn this repo's markdown docs into a queryable nlqdb memory database — decision IDs and statuses, open questions with ages, queues, ledgers, and the cross-references between them. Use when asked which features have stale open questions, which decisions reference a given ID, what is blocked and since when, or to…

nlqdb/nlqdb · 91 tokens

nlqdb-memory

Give this agent persistent, queryable memory over the nlqdb MCP server. Use whenever the agent needs to remember something across sessions, recall what it stored, or aggregate over its memory (GROUP BY / JOIN / counts / trends) — backed by a real Postgres it queries in plain English, not a vector store.

nlqdb/nlqdb · 70 tokens

amazon aurora dsql

Deprecated compatibility redirect for Aurora DSQL guidance. Use when a request concerns DSQL, Aurora DSQL, distributed SQL, DSQL schemas, migrations, queries, authentication, performance, or application development.

awslabs/mcp · 46 tokens