1. Conduid
  2. Maps
  3. Mylocation MCP Server
MCP server · Maps

Mylocation MCP Server

MCP server for location services

37Low

Scored 6 months ago · breakdown

About Mylocation MCP Server

Mylocation MCP Server is an MCP server in the Maps category: mCP server for location services.

Install

Claude Code
claude mcp add mylocation-mcp-server -- npx -y mylocation-mcp-server
npx
npx -y mylocation-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (4)

get-location-by-coordinatesGet location information from provided coordinates

Parameters not published.

get-location-by-ipGet location information from IP address

Parameters not published.

get-my-locationGet location information using current IP address via ipify and ipinfo

Parameters not published.

healthCheck the health status of the service

Parameters not published.

Ask AI

✦

Ask AI about Mylocation MCP Server

Powered by Claude · Grounded in docs

I know everything about Mylocation MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Server TypeScript Starter

This is a Model Context Protocol (MCP) server implementation that provides location services. It demonstrates how to build an MCP server using TypeScript with real-world functionality for location lookups via coordinates or IP addresses.

Features

  • TypeScript configuration
  • Complete MCP server setup
  • Location service implementation
    • Coordinate-based location lookup
    • IP-based location lookup (using IPInfo.io)
    • Health check endpoint
  • Type-safe development environment
  • Integration with external APIs

Installation

npm install mylocation-mcp

Usage

  1. Create a .env file with your IPInfo.io API token:
IPINFO_TOKEN=your_ipinfo_token_here
  1. Import and use in your code:
import { McpServer } from 'mylocation-mcp';

Development

If you want to modify or contribute to the package:

# Clone the repository
git clone https://github.com/yhwancha/mylocation-mcp.git
cd mylocation-mcp

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env and add your IPInfo.io API token

# Build the project
npm run build

Project Structure

.
├── src/
│   └── index.ts    # Main server implementation with location tools
├── build/           # Compiled JavaScript files
├── package.json    # Project dependencies and scripts
├── tsconfig.json   # TypeScript configuration
├── .env.example    # Environment variables template
└── README.md      # Documentation

Implemented Tools

1. get-location-by-coordinates

server.tool(
  "get-location-by-coordinates",
  "Get location information from provided coordinates",
  {
    latitude: z.string().describe("Latitude coordinate (-90 to 90)"),
    longitude: z.string().describe("Longitude coordinate (-180 to 180)")
  },
  async ({ latitude, longitude }) => {
    // Implementation details...
  }
);

2. get-location-by-ip

server.tool(
  "get-location-by-ip",
  "Get location information from IP address",
  {
    ipAddress: z.string().describe("IP address to lookup")
  },
  async ({ ipAddress }) => {
    // Implementation details...
  }
);

3. health

server.tool(
  "health",
  "Check the health status of the service",
  {},
  async () => {
    // Implementation details...
  }
);

MCP Server Configuration

To use this MCP server in your project, add the following configuration:

{
    "mcpServers": {
        "location-service": {
            "command": "npx",
            "args": [
              "-y",
              "mylocation-mcp-server"
            ],
            "env": {
              "IPINFO_TOKEN": <IPINFO_TOKEN>
            }
        }
    }
}

Response Format

All tools return responses in this format:

{
  "content": [
    {
      "type": "text",
      "text": "JSON string containing the response data"
    }
  ]
}

The response data follows this structure:

{
  "status": "success|error",
  "source": "user_provided|ip_based",
  "data": {
    // Location data when successful
  },
  "error": "Error message when failed"
}

Dependencies

  • @modelcontextprotocol/sdk: MCP server implementation
  • zod: Schema validation
  • axios: HTTP client for IPInfo API
  • dotenv: Environment variable management
  • TypeScript development tools

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Mylocation MCP Server

How do I install Mylocation MCP Server?

Run claude mcp add mylocation-mcp-server -- npx -y mylocation-mcp-server, then add the server to your MCP client's configuration.

Is Mylocation MCP Server safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mylocation MCP Server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.