MCP NIF.PT
Provides links to Google Maps locations for Portuguese company addresses retrieved from the NIF.PT API
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., "@MCP NIF.PTqual é o NIF da empresa "XPTO LDA"?"
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.
MCP NIF.PT
This project implements an intelligent server based on FastMCP, allowing you to query and analyze information about Portuguese companies using the NIF.PT public API. It supports multiple useful tools such as search by NIF, company name or city, checking company status, and identifying accounting-related businesses.
Features
Retrieve complete company data by NIF
Check if a company is active or closed
Identify if a company is related to accounting
Search companies by name and city
Get the NIF based on the exact company name
Access external links (Google Maps, Racius, Portugalio)
Related MCP server: brreg-mcp-server
Project Structure
.
├── main.py
├── models.py
├── nif_client.py
├── utils.py
├── requirements.txt
├── Dockerfile
├── package.json
└── .smithery.profile.json Technologies Used
FastMCP
FastAPI
httpx
Pydantic
Docker
Python 3.10+
How to Run
Locally
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.pyThe application uses transport="stdio" by default, making it compatible with Claude Desktop or terminal-based environments.
Usage Examples
Qual é a empresa com o NIF 504426744?
A empresa com o NIF 504426744 está ativa?
A empresa com o NIF 504426744 é de contabilidade?
Procurar empresas com o nome "contabilidade" em Lisboa
Qual é o NIF da empresa "XPTO LDA"?
Output Format
The responses include details such as:
Nome, cidade, atividade e estado
Morada com link para Google Maps
Contactos (telefone, email, website)
CAE (Código de Atividade Económica)
Ligações externas (Racius, Portugalio)
Claude Desktop Integration
To integrate this MCP with Claude Desktop:
Install Claude Desktop
Download and install from: https://claude.ai/downloadOpen Configuration
Go toFile > Settings > Developerand click Edit ConfigurationAdd the MCP server configuration
In theclaude_desktop_config.json, insert the following configuration:
{
"mcpServers": {
"nif-pt-server": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/YOUR/PROJECT/FOLDER",
"run",
"main.py"
]
}
}
}Replace
/ABSOLUTE/PATH/TO/YOUR/PROJECT/FOLDERwith the actual absolute path where yourmain.pyfile is located.
Restart Claude Desktop
After saving the configuration, restart Claude Desktop. Yournif-pt-serverMCP should now be available in the Claude Desktop interface.
One-Click Installation via Smithery
(https://smithery.ai/server/@ruicarvalho1/mcp_nif)
With Claude Desktop open, you can install this MCP directly using the Smithery CLI.
Just paste the following command into your terminal:
npx -y @smithery/cli@latest install @ruicarvalho1/mcp_nif --client claudeThis will automatically install the MCP and register it with Claude Desktop.
Author
Developed by Rui Carvalho.
License
This project is licensed under the MIT License.
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.
Related MCP Servers
AlicenseAqualityBmaintenanceProvides verified UK company lookup and number validation for AI agents using official Companies House data. Enables lookup of registered details by number, validation of company number format, and search by company name.Last updated355Apache 2.0- Alicense-qualityDmaintenanceEnables AI agents to search and retrieve Norwegian company data from the Brønnøysund Register Centre's open API, including company details, roles, and subunits.Last updated17MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to query Brazilian fiscal data including CNPJ, NF-e, SPED, and tax regimes through natural language, with no API keys required.Last updated44133MIT
- Alicense-qualityCmaintenanceEnables AI assistants to search and retrieve UK Companies House data including company profiles, officers, and filing history via the official API.Last updated531MIT
Related MCP Connectors
Validate EU, UK, AU VAT numbers for AI agents. EU ViDA e-invoicing compliance.
Free Brazilian CNPJ lookup (legal name, status, partners) + lawsuit discovery. Public data, no login
Brazil NFS-e service invoices for AI agents via Focus NFe and NFe.io. Stateless, never stores data.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/ruicarvalho1/MCP_Nif'
If you have feedback or need assistance with the MCP directory API, please join our Discord server