geolocation-mcp: Instructions file for Claude Code

CLAUDE.md

geolocation-mcp CLAUDE.md is an instructions file for Claude Code from 7mza/geolocation-mcp. It costs 464 tokens per session, scanned A, original, MIT.

A project guide for geolocation-mcp, a Kotlin and Spring Boot service that provides geolocation features through an MCP server. It documents the required tools, commands, testing, native builds and publishing rules.

In plain words
What is it for?
Use it when setting up the project, running or testing it, checking Kotlin formatting, building a GraalVM native image, scanning dependencies or inspecting the MCP server.
Why use it?
It gives contributors one place to find the project's setup and development commands. It also records safety rules, such as requiring permission before publishing a Docker image.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is 7mza/geolocation-mcp's own configuration. It tells Claude Code how to work on geolocation-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything geolocation-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 7mza/geolocation-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/7mza/geolocation-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/7mza/geolocation-mcp

Made for: Claude Code.

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 geolocation-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/7mza/geolocation-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/7mza/geolocation-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/7mza/geolocation-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/7mza/geolocation-mcp/claude-md/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 geolocation-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/7mza/geolocation-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/7mza/geolocation-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 464 This file is loaded in full into every session.
When invoked 464 The same file — it is already loaded in full.
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.00464 $0.00464
Opus 5.5 $0.00186 $0.00186
Sonnet 5.5 $0.00093 $0.00093
Haiku 4.5 $0.00046 $0.00046

Measured 1mo ago against content hash 6ae17873a5e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

geolocation-mcp CLAUDE.md 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 1mo 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.

CLAUDE.md · 67 lines

What it actually says

CLAUDE.md

NEVER COMMIT OR PUBLISH TO DOCKERHUB WITHOUT EXPLICIT USER PROMPT

stack

  • Kotlin 2.4.21, Spring Boot 4.1.1, Java 25
  • Spring AI MCP server Webflux
  • Reactor / coroutines reactor bridge
  • GraalVM native image support (musl, static, -Os, UPX, distroless)

commands

# setup graalvm
sdk env install

# run on jvm
./gradlew bootRun

# test all
./gradlew test

# test single class
./gradlew test --tests "com.hamza.mcp.geolocation.DatabaseInitializerTest"

# kotlin lint check
./gradlew ktlintCheck
# kotlin lint fix
./gradlew ktlintFormat

# prettier format for non kotlin
npm run format

# graalvm native compilation
## -PgenerateMetadata = tracing-agent will instrument tests to generate reachability metadata
./gradlew clean ktlintFormat ktlintCheck build -PgenerateMetadata
## build native docker image
./gradlew buildImage

# publish image to docker hub
./gradlew publishImage

# run native docker image
docker run -p 8891:8080 -v geolocation_data:/home/nonroot/.geolocation-mcp 7mza/geolocation-mcp:latest

# mcp inspector
npm run mcp

# dependency vulnerability scan
./gradlew dependencyCheckAnalyze

rules

  • any blocking code must run on Schedulers.boundedElastic() BlockHound is active in JUnit to enforce this
  • always prefer Kotlin sugar (expression bodies, let, also, apply, destructuring, when, extension functions, trailing lambdas, ...etc.) over Java verbosity
  • use reactor-kotlin-extensions to simplify webflux verbosity when possible

native compilation

GraalVM tracing-agent is configured in build.gradle.kts to instrument test tasks

if there's an error during an *Aot task do a ./gradlew clean && ./gradlew --stop then delete src/main/resources/META-INF/native-image/.lock

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. 1mo ago Changed 6ae17873a5e9
  2. 2mo ago Changed f34e96e7f503
  3. 2mo ago First seen · 67 lines · 464 tokens per session scan A a86b3cc3c01f

Subscribe to this mod's changes

geolocation-mcp CLAUDE.md is an instructions file published in the GitHub repository 7mza/geolocation-mcp (0 stars, last pushed 7d ago), licensed MIT. It adds 464 tokens to every session, about $0.0019 per session on Opus 5.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

geolocation-mcp CLAUDE.md compared with instructions from other repositories

geolocation-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
geolocation-mcp CLAUDE.md7mza/geolocation-mcpInstructions file07d agoMITA464Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file283kyesterdayMITA4,342Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot