Ghana Post GPS MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Ghana Post GPS MCP Serverlook up GPS address GA-554-3608"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Ghana Post GPS MCP Server
A Model Context Protocol (MCP) server that converts Ghana Post GPS addresses into detailed location information including coordinates.
Features
GPS Address Lookup: Convert Ghana Post GPS codes (e.g., "GA-554-3608") to detailed location information
Address Validation: Validate GPS code format before processing
Batch Processing: Look up multiple GPS addresses at once (up to 10)
Nearby Coordinates: Generate coordinates within a specified radius of a known location
Real API Integration: Uses the actual Ghana Post GPS API
Related MCP server: Google Maps Geocoding MCP Server
Installation
Prerequisites
Node.js 18.0.0 or higher
npm
Setup
Clone or download this project
Install dependencies:
npm installBuild the project:
npm run build
Usage
Development Mode
npm run devProduction Mode
npm run startTesting
# Test server connection
npm run test
# Test GPS lookup
npm run test-lookupAvailable Tools
1. lookup_gps_address
Converts a Ghana Post GPS address to detailed location information.
Input:
gps_code(string): GPS address code (e.g., "GA-554-3608")
Output: Location details including coordinates, street, area, district, region, and postcode.
2. validate_gps_code
Validates if a string matches the Ghana Post GPS address format.
Input:
gps_code(string): GPS code to validate
Output: Validation result with format information and examples.
3. batch_lookup_gps
Looks up multiple GPS addresses at once (maximum 10).
Input:
gps_codes(array): Array of GPS codes to look up
Output: Results for all provided GPS codes with status information.
4. find_nearby_coordinates
Generates coordinates within a radius of a known GPS location.
Input:
gps_code(string): Base GPS coderadius_km(number, optional): Search radius in kilometers (default: 1)count(number, optional): Number of points to generate (default: 5)
Output: Base location info and array of nearby coordinates.
Claude Desktop Integration
To use this MCP server with Claude Desktop:
Windows
Edit
%APPDATA%\\Claude\\claude_desktop_config.jsonAdd the server configuration:
{
"mcpServers": {
"ghana-post-gps": {
"command": "node",
"args": ["C:\\Users\\FRANKO\\OneDrive\\Desktop\\ghana-post-mcp\\dist\\index.js"],
"env": {}
}
}
}macOS
Edit
~/Library/Application Support/Claude/claude_desktop_config.jsonAdd the server configuration:
{
"mcpServers": {
"ghana-post-gps": {
"command": "node",
"args": ["/path/to/ghana-post-mcp/dist/index.js"],
"env": {}
}
}
}Linux
Edit
~/.config/Claude/claude_desktop_config.jsonAdd the server configuration with the appropriate path.
GPS Address Format
Ghana Post GPS addresses follow this format:
Format:
XX-YYY-ZZZZXX: 2-letter region code (e.g., GA, AK, CP)
YYY: 3-digit area code
ZZZZ: 3-4 digit location code
Examples
GA-554-3608(Greater Accra)AK-039-5028(Ashanti)CP-078-2542(Central)
API Information
This server uses the Ghana Post GPS API endpoint:
URL:
https://ghanapostgps.sperixlabs.org/get-locationMethod: POST
Content-Type:
application/x-www-form-urlencoded
Development
Project Structure
ghana-post-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── dist/ # Compiled JavaScript (after build)
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This fileBuilding
npm run buildCleaning
npm run cleanError Handling
The server includes comprehensive error handling for:
Invalid GPS code formats
API connection failures
Missing or malformed data
Rate limiting considerations
Contributing
Fork the repository
Create a feature branch
Make your changes
Test thoroughly
Submit a pull request
License
MIT License
Support
For issues or questions about Ghana Post GPS addresses, refer to the official Ghana Post documentation or contact Ghana Post directly.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kreativwiz1/GhanaPostGPS-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server