Skip to main content
Glama

Truqu MCP Server

A Model Context Protocol (MCP) server for interacting with Truqu goal and feedback data, built with TypeScript.

Getting Started

Step 1: Export your Truqu data

  1. In Truqu, click on your profile picture (top right corner)

  2. Select Settings

  3. Click on Your data

  4. Download your data as a JSON file

Step 2: Add MCP server to your client

For Claude Desktop:

  1. Open Claude Desktop settings

  2. Go to the "Developer" section

  3. Click "Edit Config" button under "Local MCP servers"

  4. Edit the config file to add the MCP server:

{
  "mcpServers": {
    "truqu-mcp": {
      "command": "npx",
      "args": ["truqu-mcp", "/path/to/your/downloaded-truqu-data.json"]
    }
  }
}
  1. Replace /path/to/your/downloaded-truqu-data.json with the actual path to your Truqu JSON file

  2. Restart Claude Desktop

For other MCP clients:

Run the server directly:

npx truqu-mcp "/path/to/your/downloaded-truqu-data.json"

That's it! The server will start and load your Truqu data automatically.

Related MCP server: mcp-copilotcli-history

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect to external data sources and tools. This server provides a foundation for building custom MCP integrations.

Features

  • Built with TypeScript for type safety

  • Uses the official MCP TypeScript SDK

  • Load and parse Truqu JSON data exports

  • Filter data by user ownership automatically

  • Date range filtering for goals, feedback, and reflections

  • Comprehensive goal management tools

  • Hot reload during development

  • Production-ready build configuration

Prerequisites

  • Node.js 18 or higher

  • npm or yarn

Installation

No installation required! Just use the published npm package:

npx truqu-mcp "/path/to/your/truqu-data.json"

Option 2: Local development

  1. Clone this repository

  2. Install dependencies:

npm install

Configuration

The server requires a path to your Truqu data JSON file. You can provide this in two ways:

# Using npm package (recommended)
npx truqu-mcp "/path/to/your/truqu-data.json"

# Local development (alternative)
tsx src/index.ts "/path/to/your/truqu-data.json"

Method 2: Environment Variable

# Using npm package (recommended)
export TRUQU_DATA_PATH="/path/to/your/truqu-data.json"
npx truqu-mcp

# Local development (alternative)
export TRUQU_DATA_PATH="/path/to/your/truqu-data.json"
tsx src/index.ts

Development (Local only)

For local development and contributions:

Start the development server with hot reload:

tsx src/index.ts "/path/to/your/truqu-data.json"

Watch for changes during development:

npm run watch

Building (Local only)

Build the TypeScript code to JavaScript:

npm run build

Project Structure

truqu-mcp/
├── src/
│   └── index.ts          # Main server implementation
├── dist/                 # Built JavaScript files (after npm run build)
├── package.json          # Project configuration and dependencies
├── tsconfig.json         # TypeScript configuration
├── .gitignore           # Git ignore rules
└── README.md            # This file

Available Tools

The server provides tools to interact with Truqu goal and feedback data:

Goals

  • get_goals_list: Get a list of user's goals with basic information (id, title, dates, status)

    • Parameters: startDate (optional string), endDate (optional string) - Date filtering in YYYY-MM-DD format

  • get_goals_detailed: Get detailed information about user's goals including action points and items

    • Parameters: startDate (optional string), endDate (optional string) - Date filtering in YYYY-MM-DD format

  • get_goal_by_id: Get a specific goal by its ID

    • Parameters: goalId (required string) - The ID of the goal to retrieve

Feedback

  • get_feedback: Get feedback/reviews given to the user

    • Parameters: startDate (optional string), endDate (optional string) - Date filtering in YYYY-MM-DD format

Reflections

  • get_reflections: Get user's reflection reports

    • Parameters: startDate (optional string), endDate (optional string) - Date filtering in YYYY-MM-DD format

Usage Example

Once the server is running with your Truqu data configured, you can use these tools:

  1. Get a list of your goals:

// Get all goals
get_goals_list({});

// Get goals from 2024
get_goals_list({ startDate: "2024-01-01", endDate: "2024-12-31" });
  1. Get detailed goal information:

// Get detailed info for all goals
get_goals_detailed({});

// Get a specific goal
get_goal_by_id({ goalId: "168a7025-f6cc-41cc-abd7-087467c634ae" });
  1. Get feedback and reflections:

// Get all feedback
get_feedback({});

// Get reflections from 2025
get_reflections({ startDate: "2025-01-01" });

Data Filtering

  • The server automatically filters data to show only items owned by the current user

  • Goals are filtered by the owner.id field

  • Reviews are filtered by the professional.id field

  • Reflections are filtered by the user.id field

  • Date filtering uses the created field for goals and reflections, and the date field for reviews

Extending the Server

To add new tools:

  1. Add the tool definition in the ListToolsRequestSchema handler

  2. Implement the tool logic in the CallToolRequestSchema handler

  3. Update this README with documentation for your new tools

MCP Client Configuration

To use this server with an MCP client, you have several options:

Run the server directly from npm:

npx truqu-mcp "/path/to/your/truqu-data.json"

Option 2: Local development

For local development and testing:

npx tsx src/index.ts "/path/to/your/truqu-data.json"

Client Configuration

Configure your MCP client with one of these approaches:

Using npm package (Recommended):

  • Command: npx truqu-mcp "/path/to/your/truqu-data.json"

  • No working directory required

Local development:

  • Command: npx tsx src/index.ts "/path/to/your/truqu-data.json"

  • Working directory: /path/to/truqu-mcp

Example Claude Desktop configuration (npm package):

{
  "mcpServers": {
    "truqu-mcp": {
      "command": "npx",
      "args": ["truqu-mcp", "/path/to/your/truqu-data.json"]
    }
  }
}

Alternative with environment variable:

{
  "mcpServers": {
    "truqu-mcp": {
      "command": "npx",
      "args": ["truqu-mcp"],
      "env": {
        "TRUQU_DATA_PATH": "/path/to/your/truqu-data.json"
      }
    }
  }
}

Local development configuration:

{
  "mcpServers": {
    "truqu-mcp": {
      "command": "npx",
      "args": ["tsx", "src/index.ts", "/path/to/your/truqu-data.json"],
      "cwd": "/path/to/truqu-mcp"
    }
  }
}

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for development setup and guidelines.

Automated Publishing

This package uses GitHub Actions for automated publishing:

  • CI: Runs tests on every push/PR

  • Publish: Automatically publishes to npm when a new tag is created

To release a new version:

  1. Update version: npm version patch (or minor/major)

  2. Push changes: git push origin main --tags

  3. GitHub Actions will automatically build and publish to npm

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/kubilaykarpat/truqu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server