MCP.so
登录

FastAPI NCM Attributes Tool MCP Server

@TulioCMP

基本信息

分类

开发工具

传输方式

stdio

作者

TulioCMP

关于 FastAPI NCM Attributes Tool MCP Server

暂无概览

#fastapi#ncm#api#attributes

FastAPI NCM Attributes Tool MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

FastAPI NCM Attributes Tool MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is FastAPI NCM Attributes Tool?

FastAPI NCM Attributes Tool is a FastAPI-based API for retrieving information about NCM (Nomenclatura Comum do Mercosul) codes and their associated attributes. It provides RESTful endpoints and an MCP server integration for AI interaction, intended for developers needing to look up NCM code details.

How to use FastAPI NCM Attributes Tool?

The application is run with uvicorn main:app --reload --host 0.0.0.0 --port 8000. Use the endpoints GET /ncm/{ncm_code}/attributes to get attributes for a specific NCM code and GET /ncm/search?query={search_term} to search NCM codes by code or description. The MCP tool get_ncm_attributes_tool is available for AI integration.

Key features of FastAPI NCM Attributes Tool

  • Search NCM codes by code or description.
  • Retrieve all attributes for a specific NCM code with possible values.
  • RESTful API endpoints with proper documentation.
  • MCP server integration for AI interaction.
  • Clean architecture with models, repositories, services, and schemas.
  • PostgreSQL database with dedicated tables (ncm, ncm_attributes, attribute).

Use cases of FastAPI NCM Attributes Tool

  • Look up attributes for a given NCM code for tariff classification.
  • Integrate with an AI assistant to answer NCM-related queries.
  • Automate batch retrieval of NCM attributes via HTTP API.

常见问题

1

What data does the tool use?

It uses a PostgreSQL database with tables `ncm` (codes and descriptions), `ncm_attributes` (associates codes to attributes), and `attribute` (attribute definitions).

2

How do I run the application?

Run `uvicorn main:app --reload --host 0.0.0.0 --port 8000` from the project directory. The API documentation is then available at `http://localhost:8000/docs`.

3

What MCP tools are available?

The MCP tool `get_ncm_attributes_tool` is available to get attributes for an NCM code.

4

How can I access the API documentation?

Open `http://localhost:8000/docs` in your browser after starting the server.

5

What search functionality does the API provide?

The `GET /ncm/search?query={search_term}` endpoint searches for NCM codes by code or description.

评论

开发工具 分类下的更多 MCP 服务器