tekla-api-mcp
v1.3.1
Published
MCP server for Tekla Open API documentation with code examples - works with Claude Desktop
Maintainers
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.
✨ 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
- Windows: Download from nodejs.org (LTS version recommended)
- Alternative: Use Node Version Manager (nvm) for Windows
Verify Installation:
node --version # Should show v18.0.0 or higher
npm --version # Should show npm versionSystem 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 setupWhat 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 setupLocal 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.jsonfile is for personal project settings and is automatically ignored by git.
Setup Steps
Navigate to your project directory:
cd <project-root>Create the
.mcp.jsonfile with the configuration aboveIf needed, create
.claudedirectory andsettings.local.json:mkdir .claudeRestart Claude Code and verify the server appears in available tools
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.jsonfile - Ensure Node.js 18+ is installed and accessible from your project directory
- Check that
npx tekla-api-mcpruns 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 setupBuilding from Source
git clone https://github.com/pawellisowski/tekla-api-mcp.git
cd tekla-api-mcp
npm install
npm run buildDocumentation 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:
- The CHM file is already included in the package
- Run
npm run setupto refresh examples or rebuild documentation - All parsing and processing happens automatically
🐛 Troubleshooting
Node.js Issues
"node is not recognized" or "npm is not recognized"
- Download Node.js from nodejs.org (LTS version)
- Restart your command prompt/terminal
- Verify:
node --versionandnpm --version - If still issues, add Node.js to your Windows PATH manually
"Node version too old" Error
- Minimum required: Node.js 18+
- Update to latest LTS version from nodejs.org
- Alternatively, use nvm for Windows
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 buildSetup 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
- Verify config file location:
%APPDATA%\Claude\claude_desktop_config.json - Check JSON syntax is valid (no trailing commas)
- Restart Claude Desktop completely
- 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:
- Check existing issues: GitHub Issues
- Create new issue with:
- Your Node.js version (
node --version) - Windows version
- Complete error message
- Steps you tried
- Your Node.js version (
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Adding New Features
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- 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
