Example MCP server for Indonesian customs tariff and HS code lookups

Example MCP server for Indonesian customs tariff and HS code lookups

mcp-server-for-indonesian-custom-tarif•bytehbotolbayu

An example MCP server that connects to the Hascode API to fetch Indonesian customs tariff and HS code information for AI models.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Fetches Indonesian customs tariff data from the Hascode API by HS code.
  • •Exposes resources, tools and prompts such as HS code datasets, tariff schedules and trade queries.

BEST FOR

  • •Looking up HS codes and duty rates for Indonesian imports and exports.
  • •Connecting AI assistants like Claude Desktop to customs tariff data.

ABOUT MCP-SERVER-FOR-INDONESIAN-CUSTOM-TARIF

Example MCP server for Indonesian customs tariff and HS code lookups is cataloged as an MCP server attributed to tehbotolbayu. An example MCP server that connects to the Hascode API to fetch Indonesian customs tariff and HS code information for AI models. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Example MCP server for Indonesian customs tariff and HS code lookups are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What kind of data can the server fetch?

It fetches tariff and HS code information, including duty rates for specific products, via the Hascode API.

What are the system requirements?

Python 3.10 or higher, MCP SDK 1.2.0 or higher, and the uv package manager.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b40319b83c95 · 采集于 2026-11-13 13:31:28 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Server Example for Indonesian Customs Tariff & Hascode API

This repository provides an example implementation of a Model Context Protocol (MCP) server, customized for educational use in the context of Indonesian customs tariff data and Hascode API integration. The project demonstrates how to build a functional MCP server that connects to APIs such as Hascode to fetch tariff and HS code information for AI models.

What is MCP?

MCP (Model Context Protocol) is an open standard designed to provide structured context to Large Language Models (LLMs). You can think of MCP like a USB-C port for AI—offering a standardized way to plug models into various external data sources, such as customs tariff APIs, HS code lookups, or logistics databases.

Key Benefits

  • Pre-built integrations for services like the Hascode API, which provides real-time HS code and duty rate information
  • Flexibility to work across different LLM providers (OpenAI, Anthropic, etc.)
  • A clean abstraction layer for securely accessing regulated data like import/export tariff structures

Architecture Overview

MCP uses a client-server architecture that supports multiple data access points:

  • MCP Hosts: AI tools like Claude Desktop or enterprise assistants that request structured customs data
  • MCP Clients: Protocol intermediaries that handle 1:1 communication with servers
  • MCP Servers: Lightweight components that expose data and capabilities, such as fetching Indonesian customs tariffs via API
  • Data Sources: Includes local files (e.g., PDF duty schedules) and remote APIs like Hascode or customs office databases

Core MCP Concepts

An MCP server typically exposes three types of capabilities:

  • Resources: HS code datasets, tariff schedules, or API responses (e.g., duty rate for a specific product)
  • Tools: API functions that an LLM can call to get updated customs information
  • Prompts: Pre-configured templates (e.g., "What is the import duty for HS Code 8703.23.91.00 in Indonesia?")

System Requirements

  • Python 3.10 or higher
  • MCP SDK 1.2.0 or higher
  • uv package manager

Getting Started

Installing uv Package Manager

On MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then restart your terminal to enable the uv command.

Project Setup

  1. Initialize your MCP project:
uv init mcp-server
cd mcp-server

uv venv
source .venv/bin/activate  # Use .venv\Scripts\activate on Windows

uv add "mcp[cli]" httpx
  1. Create the main server file:
touch main.py

Example: Integrate with Hascode API

In main.py, you can define a resource to fetch tariff data using Hascode:

import httpx
from mcp import Resource

class HsCodeTariffResource(Resource):
    def read(self, hs_code: str):
        response = httpx.get(f"https://api.hascode.id/tariff?code={hs_code}")
        return response.json()

Running the Server

Start the server:

uv run main.py

Connecting to Claude Desktop

  1. Install Claude Desktop
  2. Edit the config file at: ~/Library/Application Support/Claude/claude_desktop_config.json
{
    "mcpServers": {
        "mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/YOUR/mcp-server",
                "run",
                "main.py"
            ]
        }
    }
}
  1. Restart Claude Desktop

Troubleshooting

If Claude Desktop fails to detect your server:

  1. Check the config file path and syntax
  2. Use the absolute path for all directories
  3. Ensure uv is installed and working
  4. Review Claude logs for connection issues

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Example MCP server for Indonesian customs tariff and HS code lookups from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-for-indonesian-custom-tarif)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research