MCP
Learn how to use DigiTax Tanzania's MCP server
MCP stands for Model Context Protocol. Read more about it in the official documentation.
The DigiTax Tanzania Model Context Protocol (MCP) server enables AI-powered code editors like Cursor and Windsurf, plus general-purpose tools like Claude Desktop, to interact directly with your DigiTax Tanzania API and documentation.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI applications to securely access external data sources and tools. The DigiTax Tanzania MCP server provides AI agents with:
- Direct API access to DigiTax Tanzania functionality
- Documentation search capabilities
- Real-time data from your DigiTax Tanzania account
- Code generation assistance for DigiTax Tanzania integrations
DigiTax Tanzania MCP Server Setup
DigiTax Tanzania hosts a remote MCP server at https://tz.docs.digitax.tech/mcp. Configure your AI development tools to connect to this server.
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"tz-dgtax": {
"url": "https://tz.docs.digitax.tech/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"tz-dgtax": {
"url": "https://tz.docs.digitax.tech/mcp"
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"tz-dgtax": {
"url": "https://tz.docs.digitax.tech/mcp"
}
}
}Testing Your MCP Setup
Once configured, you can test your MCP server connection:
- Open your AI editor (Cursor, Windsurf, etc.)
- Start a new chat with the AI assistant
- Ask about DigiTax Tanzania - try questions like:
- "How do I create and submit a TRA fiscal invoice in DigiTax?"
- "Show me an example of a DigiTax Tanzania POST /invoices request"
- "How do I configure customer TIN and VAT tax types for TRA VFD?"
- "Create a Node.js integration with DigiTax TZ"
The AI should now have access to your DigiTax Tanzania account data and documentation through the MCP server.
Updated about 2 hours ago