{"_id":"@economic-mcp/server-economic","name":"@economic-mcp/server-economic","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@economic-mcp/server-economic","version":"1.0.0","description":"Model Context Protocol server for e-conomic API","main":"src/index.js","bin":{"mcp-economic-server":"bin/server.js"},"scripts":{"start":"node bin/server.js","test":"node test/test-server.js"},"keywords":["mcp","model-context-protocol","e-conomic","api","invoices","journals","n8n"],"author":"","license":"MIT","dependencies":{"axios":"^1.8.4","dotenv":"^16.4.7","express":"^5.1.0"},"engines":{"node":">=14.0.0"},"_id":"@economic-mcp/server-economic@1.0.0","_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-k+Y/4pMod/Fb+y8QX5Ytl9FRqRv9NwO+3WckFjVXDpGDOVqVmgwbFoPN86II/86P39Ta0hMtPAN2pek0u3wKWw==","shasum":"90ace97431afd768cc88082d97f7091dbfcd9046","tarball":"https://registry.npmjs.org/@economic-mcp/server-economic/-/server-economic-1.0.0.tgz","fileCount":11,"unpackedSize":12832,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICoRhTdJkPRkaaLvut8HDDusq40383hLsiB6enXF2IhHAiEA1BmE8GlY3n1fSSYy8h6Cg9hgLBVuj7PywmVtrp4Vo0c="}]},"_npmUser":{"name":"backurdilicios","email":"bachir.kurdi@gmail.com"},"directories":{},"maintainers":[{"name":"backurdilicios","email":"bachir.kurdi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/server-economic_1.0.0_1743829909284_0.6697080515765395"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-05T05:11:49.184Z","1.0.0":"2025-04-05T05:11:49.494Z","modified":"2025-04-05T05:11:49.801Z"},"maintainers":[{"name":"backurdilicios","email":"bachir.kurdi@gmail.com"}],"description":"Model Context Protocol server for e-conomic API","keywords":["mcp","model-context-protocol","e-conomic","api","invoices","journals","n8n"],"license":"MIT","readme":"# @modelcontextprotocol/server-economic\n\nA Model Context Protocol (MCP) server for the e-conomic REST API, focusing on invoices and journals endpoints. This server can be used in systems like n8n with the following configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"economic\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-economic\"],\n      \"env\": {\n        \"ECONOMIC_APP_SECRET_TOKEN\": \"your_key_here\",\n        \"ECONOMIC_AGREEMENT_GRANT_TOKEN\": \"your_token_here\"\n      }\n    }\n  }\n}\n```\n\n## Features\n\n- Self-contained server that can be run with npx\n- Implements e-conomic API endpoints for invoices and journals\n- Authentication using e-conomic API tokens\n- Error handling and logging\n- Health check endpoint\n\n## Supported Endpoints\n\n### Invoices\n- GET /invoices - Get all invoices\n- GET /invoices/drafts - Get all draft invoices\n- GET /invoices/booked - Get all booked invoices\n\n### Journals\n- GET /journals - Get all journals\n- GET /journals/:journalNumber - Get a specific journal\n- GET /journals/:journalNumber/entries - Get entries for a specific journal\n- GET /journals/:journalNumber/vouchers - Get vouchers for a specific journal\n\n## Installation\n\n```bash\nnpm install @modelcontextprotocol/server-economic\n```\n\nOr run directly with npx:\n\n```bash\nnpx @modelcontextprotocol/server-economic\n```\n\n## Configuration\n\nCreate a `.env` file with the following variables:\n\n```\nECONOMIC_APP_SECRET_TOKEN=your_key_here\nECONOMIC_AGREEMENT_GRANT_TOKEN=your_token_here\nPORT=3000\n```\n\nOr provide them as environment variables when running the server.\n\n## Usage\n\n### Running the server\n\n```bash\nnpx @modelcontextprotocol/server-economic\n```\n\n### Making requests\n\nAll requests require authentication headers:\n\n```\nX-AppSecretToken: your_key_here\nX-AgreementGrantToken: your_token_here\n```\n\nExample request:\n\n```bash\ncurl -H \"X-AppSecretToken: your_key_here\" -H \"X-AgreementGrantToken: your_token_here\" http://localhost:3000/invoices\n```\n\n## Integration with n8n\n\nAdd the following to your n8n configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"economic\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-economic\"],\n      \"env\": {\n        \"ECONOMIC_APP_SECRET_TOKEN\": \"your_key_here\",\n        \"ECONOMIC_AGREEMENT_GRANT_TOKEN\": \"your_token_here\"\n      }\n    }\n  }\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-3514269c78496804bdab8c23dbffec8b"}