location-mcp-server
1
The Location MCP Server is a Model Context Protocol server that provides location data from a macOS application by integrating with Claude Desktop. It facilitates interaction by exposing a 'getCurrentLocation' tool that retrieves data from the local app.
Location MCP Server
An MCP (Model Context Protocol) server that provides location data from a local macOS app.
Prerequisites
- macOS (this package launches a macOS app)
- Node.js 16 or higher
Installation
Use npm install -g @sokyran/location-mcp-server
or run directly with npx @sokyran/location-mcp-server
.
Usage with Claude Desktop
- Download and place
location-getter-agent.app
in the same directory. - Edit the Claude Desktop configuration file to add the MCP server command and arguments.
- Restart Claude Desktop and use the
getCurrentLocation
tool.
How It Works
- Launches location-getter-agent.app
- Waits for the app's HTTP server to start on port 8080
- Exposes a
getCurrentLocation
tool to Claude - Fetches and returns location data from the local app
Troubleshooting
- Ensure
location-getter-agent.app
is in the correct directory - Allow necessary permissions in System Preferences
- Ensure port 8080 is free
Instructions
- Use Xcode to build location-getter
- Find the app in Product -> Show build folder in Finder
- Move
location-getter-agent.app
next toindex.ts
- Run npm commands to build and start the application.