Enables configuration of the server through environment variables, particularly for storing and accessing the Tracxn API key securely.
Tracxn MCP Server
A Model Context Protocol (MCP) server that wraps the Tracxn REST API, providing a standardized interface for LLMs to interact with Tracxn data.
Prerequisites
Node.js 20 or higher
Tracxn API key
Related MCP server: OpenAPI MCP Server
Setup
Clone the repository:
git clone <repository-url> cd tracxn-mcpInstall dependencies:
npm installCreate a
.envfile:cp .env.example .envAdd your Tracxn API key to the
.envfile:TRACXN_API_KEY=your_api_key_here
Running the Server
Development mode:
Production mode:
The server will start on port 3000 by default. You can change this by setting the PORT environment variable.
Available Tools
get_company: Fetch detailed information about a companyMore tools will be added based on Tracxn API endpoints
Resources
tracxn_raw: Access raw JSON data from any Tracxn API endpoint (read-only)
Error Handling
The server includes:
Rate limiting with exponential backoff and jitter
Error classification for common HTTP status codes
Proper error propagation to clients
License
MIT