Jadikan API HTTP huluan sebagai server MCP yang boleh digunakan ejen AI, dilindungi kunci bearer.
Admin menambah perkhidmatan dengan satu atau lebih endpoint API huluan. Setiap endpoint menjadi satu tool MCP.
Setiap perkhidmatan disediakan pada endpoint MCP tersendiri: https://mcp.pahanggo.com/mcp/{service}
Cipta klien, pilih perkhidmatannya dan hantar kunci API sebagai token bearer pada setiap permintaan.
Tool ini boleh dipanggil tanpa kunci API.
This server exposes the Pahang ID District intelligence API as a tool for resolving and retrieving district records. Its tools let an agent look up districts by name or search term and list districts optionally filtered by state or country.
Endpoint MCP: https://mcp.pahanggo.com/mcp/district
claude mcp add --transport http district https://mcp.pahanggo.com/mcp/district
lookup_districtsLook up district records from the Pahang ID intelligence service. Use it to resolve district name from latitude and longitude coordinates.
| Argumen | Jenis | Penerangan |
|---|---|---|
lat wajib |
number | Latitude of the point to look up, in decimal degrees (e.g. 3.1390). |
lon wajib |
number | Longitude of the point to look up, in decimal degrees (e.g. 101.6869). |
This server provides tools for Malaysian prayer-time (waktu solat) lookups via the Pahang ID intel API. It lets an AI agent resolve a city or district name into a prayer-time location/zone code and then retrieve the associated solat schedule for that code.
Endpoint MCP: https://mcp.pahanggo.com/mcp/waktu-solat
claude mcp add --transport http waktu-solat https://mcp.pahanggo.com/mcp/waktu-solat
get_solat_codesLook up prayer-time (solat) location codes from the Pahang ID intel API, optionally filtered by a search query such as a city or district name. Use this to resolve a place name into the code needed for prayer-time lookups.
| Argumen | Jenis | Penerangan |
|---|---|---|
q |
string | Search query used to filter location codes, e.g. a city or district name like "kuantan". |
search_solat_by_codeSearch prayer (solat) time records from the Pahang ID intel service by location/zone code, such as "PHG02". Use this when you need the prayer schedule associated with a specific zone code.
| Argumen | Jenis | Penerangan |
|---|---|---|
code wajib |
string | Location or zone code to search for, e.g. "PHG02". |
page |
integer | Page number of results to return, starting at 1. |
limit |
integer | Maximum number of matching records to return. |
This server exposes the Pahang ID weather intelligence API, letting an agent look up locations and retrieve weather forecasts. Use its tools to resolve a place name into a location identifier and then fetch current or upcoming forecast conditions for that location.
Endpoint MCP: https://mcp.pahanggo.com/mcp/weather-forecast
claude mcp add --transport http weather-forecast https://mcp.pahanggo.com/mcp/weather-forecast
get_weather_forecastRetrieves the weather forecast from the Pahang ID intelligence service for a given location code. Use this when an agent needs current or upcoming forecast conditions for a specific location.
| Argumen | Jenis | Penerangan |
|---|---|---|
loc |
string | Location code to fetch the forecast for, e.g. "Ds069". |
search_weather_locationsSearch the weather location directory by name or keyword (e.g. "kuantan") and return matching locations. Use this to find the location identifier or details needed before requesting weather data for a place.
| Argumen | Jenis | Penerangan |
|---|---|---|
q |
string | Search term used to match location names, such as a city or district name (e.g. "kuantan"). |
page |
integer | Page number of results to return, for paginated responses. |
limit |
integer | Maximum number of matching locations to return. |
Tool persendirian memerlukan kunci API klien, dihantar sebagai token bearer:
Claude Code:
claude mcp add --transport http my-service https://mcp.pahanggo.com/mcp/my-service \ --header "Authorization: Bearer YOUR_API_KEY"
Mana-mana klien MCP (streamable HTTP):
{
"mcpServers": {
"my-service": {
"type": "http",
"url": "https://mcp.pahanggo.com/mcp/my-service",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Semak sambungan dan senaraikan tool:
curl -X POST https://mcp.pahanggo.com/mcp/my-service \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Permintaan tanpa kunci yang sah, atau untuk perkhidmatan yang tidak dibenarkan bagi kunci tersebut, akan ditolak.