npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tekla-api-mcp

v1.3.1

Published

MCP server for Tekla Open API documentation with code examples - works with Claude Desktop

Readme

🏗️ Tekla API MCP Server

A Model Context Protocol (MCP) server that provides Claude Desktop and Claude Code with comprehensive access to the Tekla Open API documentation and real-world code examples.

npm version License: MIT

✨ Features

  • 🔍 Search API Documentation - Find classes, methods, properties, and other API elements
  • 📚 Real Code Examples - 50+ working examples from the official TSOpenAPIExamples repository
  • 🎯 Intelligent Search - Fuzzy search across documentation and examples
  • 📖 Detailed Documentation - Get comprehensive class and method details
  • 🏷️ Browse by Category - Explore examples by type (Applications, Plugins, Drawings)
  • 🔗 Claude Integration - Works seamlessly with Claude Desktop and Claude Code

📋 Prerequisites

Before installing, ensure you have:

Node.js 18+ Required

Verify Installation:

node --version    # Should show v18.0.0 or higher
npm --version     # Should show npm version

System Requirements

  • Windows OS (required for Tekla Structures compatibility)
  • Claude Desktop or Claude Code
  • Internet connection (for initial setup and examples)

🚀 Quick Start

Step 1: Run Setup (Recommended)

# Interactive setup - handles everything automatically
npx tekla-api-mcp setup

What this does:

  • Downloads and installs the package
  • Builds the TypeScript code
  • Downloads Tekla API examples
  • Generates Claude Desktop configuration
  • Takes 2-5 minutes depending on internet speed

Step 2: Configure Claude Desktop

Copy the generated configuration to your Claude Desktop config file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Step 3: Restart Claude Desktop

Restart Claude Desktop to load the new MCP server.

Step 4: Test the Setup

Ask Claude: "Search for Model classes in Tekla API"


Alternative Installation Methods

Global Install:

npm install -g tekla-api-mcp
tekla-api-mcp setup

Local Development:

git clone https://github.com/pawellisowski/tekla-api-mcp.git
cd tekla-api-mcp
npm install
npm run setup

📋 Claude Desktop Configuration

After setup, add this to your Claude Desktop config file:

NPX Version (Recommended):

{
  "mcpServers": {
    "tekla-api-mcp": {
      "command": "npx",
      "args": ["tekla-api-mcp"]
    }
  }
}

NPX Note: The server runs from the NPM package cache, so no specific working directory is needed.

Global Install Version:

{
  "mcpServers": {
    "tekla-api-mcp": {
      "command": "tekla-api-mcp"
    }
  }
}

Configuration File Location (Windows):

  • %APPDATA%\Claude\claude_desktop_config.json

Note: This MCP server is designed for Windows environments where Tekla Structures runs.

📋 Claude Code Local Setup

For local development projects using Claude Code, you need to configure MCP servers in your project directory.

Required File: .mcp.json

Create a .mcp.json file in your project root (e.g., <project-root>\.mcp.json):

NPX Version (Recommended):

{
  "McpServers": {
    "tekla-api-mcp": {
      "command": "npx",
      "args": ["tekla-api-mcp"]
    }
  }
}

Global Install Version:

{
  "McpServers": {
    "tekla-api-mcp": {
      "command": "tekla-api-mcp"
    }
  }
}

Optional File: .claude/settings.local.json

You might need to create .claude/settings.local.json in your project if you encounter permission issues or need environment customization:

{
  "enableAllProjectMcpServers": true
}

Note: The .claude/settings.local.json file is for personal project settings and is automatically ignored by git.

Setup Steps

  1. Navigate to your project directory:

    cd <project-root>
  2. Create the .mcp.json file with the configuration above

  3. If needed, create .claude directory and settings.local.json:

    mkdir .claude
  4. Restart Claude Code and verify the server appears in available tools

  5. Test the setup: Ask Claude: "Search for Model classes in Tekla API"

Troubleshooting

  • If the server doesn't appear, try adding the .claude/settings.local.json file
  • Ensure Node.js 18+ is installed and accessible from your project directory
  • Check that npx tekla-api-mcp runs successfully from your project directory

🛠️ Requirements

  • Windows OS (required for Tekla Structures compatibility)
  • Node.js 18+
  • Claude Desktop or Claude Code

Note: Tekla Open API documentation and examples are included in the package - no additional files needed!

📖 Available Tools

🔍 search_api

Search the Tekla Open API documentation.

Ask Claude: "Search for Model classes in Tekla API"

📝 search_examples

Search through real code examples.

Ask Claude: "Show me beam creation examples"

🔎 get_example_details

Get complete code and details for specific examples.

Ask Claude: "Show details for BeamApplication example"

📚 get_class_details

Get detailed information about API classes.

Ask Claude: "Tell me about the Model class"

🎯 get_method_details

Get detailed method information.

Ask Claude: "How do I use the Insert method?"

🗂️ browse_namespace

Explore API by namespace.

Ask Claude: "What's available in Tekla.Structures.Model?"

📊 get_statistics

View documentation coverage statistics.

Ask Claude: "Show me API documentation statistics"

🔧 Command Reference

Understanding the Commands

npx tekla-api-mcp setup - One-time setup command

  • Installs and builds the MCP server
  • Downloads Tekla API examples from GitHub
  • Processes and indexes documentation
  • Generates Claude Desktop configuration
  • Run this ONCE when first installing

npx tekla-api-mcp - Starts the MCP server

  • Runs the actual MCP server that Claude connects to
  • This is what Claude Desktop calls automatically
  • Don't run this manually - Claude Desktop handles it
  • Used in your Claude Desktop configuration

Setup Process Details

When you run npx tekla-api-mcp setup, expect to see:

🏗️ Tekla API MCP Server Setup
=================================

📦 Building project...
✅ Build completed

📥 Downloading Tekla API examples...  
✅ Examples downloaded and processed

🔍 Processing API documentation...
✅ Documentation indexed

📋 Generating Claude Desktop configuration...
✅ Setup completed successfully!

If setup appears stuck:

  • The "Downloading examples" step takes 1-3 minutes
  • Large files are being processed in the background
  • Check your internet connection if it takes longer than 5 minutes

💡 Example Queries for Claude

Once configured, you can ask Claude questions like:

  • "How do I create a beam in Tekla using the API?"
  • "Show me examples of working with the Model class"
  • "What drawing manipulation examples are available?"
  • "Find all classes related to reinforcement"
  • "Show me the syntax for creating a custom part"
  • "What are the available namespaces in Tekla API?"

📊 Coverage

API Documentation

  • 1,000+ API items processed from official CHM documentation
  • 75 Classes with detailed information
  • 235 Methods with signatures and descriptions
  • 483 Properties with usage details
  • 58 Enums with value definitions

Code Examples

  • 50+ Real Examples from official Tekla repository
  • 5 Categories: Model/Applications, Model/Plugins, Drawings/Applications, Drawings/Plugins, CustomProperties
  • 150+ Code Snippets with actual working C# code
  • API Usage Patterns showing real-world implementations

🏗️ Project Structure

tekla-api-mcp/
├── bin/                    # CLI executable
├── src/                    # TypeScript source code  
├── scripts/                # Setup and utility scripts
├── examples/               # Claude Desktop config examples
├── parsed-api/             # Pre-processed API data (2.7MB)
└── dist/                   # Compiled JavaScript (auto-generated)

🔧 Development

Scripts

npm run build       # Compile TypeScript
npm run dev         # Run in development mode
npm start          # Run compiled version  
npm run setup      # Interactive setup

Building from Source

git clone https://github.com/pawellisowski/tekla-api-mcp.git
cd tekla-api-mcp
npm install
npm run build

Documentation Included

The Tekla Open API documentation (CHM file) and examples are pre-bundled with the package for immediate use. No additional setup required!

For development or updates:

  1. The CHM file is already included in the package
  2. Run npm run setup to refresh examples or rebuild documentation
  3. All parsing and processing happens automatically

🐛 Troubleshooting

Node.js Issues

"node is not recognized" or "npm is not recognized"

  1. Download Node.js from nodejs.org (LTS version)
  2. Restart your command prompt/terminal
  3. Verify: node --version and npm --version
  4. If still issues, add Node.js to your Windows PATH manually

"Node version too old" Error

Setup Issues

Setup appears stuck on "Setting up Tekla API MCP Server..."

  • Wait 2-5 minutes - downloading examples takes time
  • Check internet connection
  • If truly stuck (>10 minutes), press Ctrl+C and retry

"Server not built" Error

npx tekla-api-mcp setup
# or if installed globally:
npm run build

Setup fails with "Permission denied" or "Access denied"

  • Run command prompt as Administrator
  • Or try: npx --yes tekla-api-mcp setup
  • Check Windows antivirus isn't blocking npm

Claude Desktop Issues

MCP Server doesn't appear in Claude Desktop

  1. Verify config file location: %APPDATA%\Claude\claude_desktop_config.json
  2. Check JSON syntax is valid (no trailing commas)
  3. Restart Claude Desktop completely
  4. Check Claude Desktop logs in the Help menu

"No API data loaded" Warning This is rare since data is pre-bundled, but if it occurs:

  • Reinstall: npx tekla-api-mcp setup
  • Check that Node.js can access the npm cache
  • Try global install: npm install -g tekla-api-mcp

Network Issues

"Failed to download examples" Error

  • Check internet connection
  • Corporate firewall may block GitHub access
  • Try running setup from home network
  • Manual workaround: The server works without examples (API docs still available)

Performance Issues

Setup takes very long (>10 minutes)

  • Ensure sufficient RAM (4GB+ recommended)
  • Close other applications
  • Try on a faster internet connection
  • Consider global install instead of npx

Memory Issues During Setup

  • Close other applications
  • Restart your computer if needed
  • Try: node --max-old-space-size=8192 npx tekla-api-mcp setup

Getting Help

If problems persist:

  1. Check existing issues: GitHub Issues
  2. Create new issue with:
    • Your Node.js version (node --version)
    • Windows version
    • Complete error message
    • Steps you tried

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Adding New Features

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

Reporting Issues

Please report bugs and feature requests in the GitHub Issues.

📄 License

MIT License - see LICENSE file for details.

🔗 Links

  • Repository: https://github.com/pawellisowski/tekla-api-mcp
  • NPM Package: https://www.npmjs.com/package/tekla-api-mcp
  • Tekla Examples: https://github.com/TrimbleSolutionsCorporation/TSOpenAPIExamples
  • MCP Documentation: https://modelcontextprotocol.io
  • Claude Desktop: https://claude.ai/desktop

🙏 Acknowledgments

  • Trimble/Tekla for the comprehensive API documentation and examples
  • Anthropic for the Model Context Protocol and Claude
  • TSOpenAPIExamples repository contributors for real-world code examples

Made with ❤️ for the Tekla developer community