Labsco
DaanTheoden logo

Generic API MCP Server

โ˜… 14

from DaanTheoden

A generic server to interact with any REST API, allowing you to query data, create items, and call methods.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

๐Ÿš€ Aras Innovator Claude Agent

Connect Claude Desktop to Aras Innovator PLM via OAuth 2.0!

This Model Context Protocol (MCP) server enables Claude Desktop to interact with Aras Innovator using modern OAuth 2.0 authentication and OData REST APIs, allowing you to query PLM data, create items, and call methods directly from your AI assistant.

โœจ What can you do?

  • ๐Ÿ” Secure OAuth 2.0 authentication with Aras Innovator 14+
  • ๐Ÿ“Š Query PLM data using OData REST endpoints
  • โœ๏ธ Create new items (Parts, Documents, etc.) directly from Claude
  • ๐Ÿ”ง Call Aras server methods and custom endpoints
  • ๐Ÿ“‹ Access lists and configuration data
  • ๐Ÿ›ก๏ธ Enterprise-grade security with bearer token authentication

๐Ÿ› ๏ธ Available tools

ToolDescriptionWhat You Can AskExample Endpoint
test_api_connectionTest OAuth 2.0 authentication"Test my API connection"N/A
api_get_itemsQuery Aras OData"Get all Parts"Part, Document
api_create_itemCreate new Aras items"Create a new Part"Part, Document
api_call_methodCall Aras server methods"Call method GetItemsInBOM"Method names
api_get_listGet Aras list values"Show Part categories"List IDs

๐Ÿ” OAuth 2.0 Authentication

This agent uses OAuth 2.0 Resource Owner Password Credentials Grant for secure authentication with Aras Innovator 14+. The authentication flow:

  1. Token Request: https://your-server/oauthserver/connect/token
  2. Scope: openid Innovator offline_access
  3. Client ID: IOMApp (default Aras client)
  4. Grant Type: password
  5. Required: username, password, database

๐Ÿ’ฌ Example conversations

You: "Test my API connection"
Claude: โœ… Successfully authenticated with API!
Bearer token obtained and ready for API calls.
Server URL: https://your-server.com/YourDatabase

You: "Get all Parts where item_number starts with 'P-'"
Claude: Retrieved 25 Parts matching your criteria...

You: "Create a new Document with name 'User Manual v2'"
Claude: Successfully created Document with ID A1B2C3D4...

๐Ÿ”ง Recent Fixes & Updates

โœ… v1.1.0 - OAuth 2.0 & JSON Parsing Fixes

  • Fixed: "Unexpected token 'A', 'API MCP Se'... is not valid JSON" error
  • Added: Proper OAuth 2.0 authentication with requests-oauthlib
  • Added: Database parameter requirement for Aras authentication
  • Fixed: All print statements redirected to stderr to prevent stdout contamination
  • Updated: OData endpoint support (/Server/Odata)
  • Added: Proper HTTP headers for Aras REST API

๐Ÿ› ๏ธ Troubleshooting

๐Ÿ”— OAuth authentication failing?

  • Verify your Aras server supports OAuth 2.0 (Aras 14+)
  • Check credentials and database name in .env
  • Ensure user has API access permissions

๐Ÿ” "Missing database parameter" error?

  • Add ARAS_DATABASE=YourDatabaseName to your .env file

๐Ÿค– Claude not finding tools?

  • Restart Claude Desktop after config changes
  • Check file paths in claude_desktop_config.json

๐Ÿ JSON parsing errors?

  • โœ… Fixed in v1.1.0! Update to latest version

๐Ÿ—๏ธ Architecture

Claude Desktop
    โ†“ JSON-RPC
MCP Server (stdio)
    โ†“ OAuth 2.0
Aras Innovator
    โ†“ OData REST API
PLM Database

๐Ÿค Contributing

Found a bug or want to add features? We welcome contributions! Please check our issues or submit a pull request.

๐Ÿ“š Learn More

๐Ÿ“„ License

MIT License - see LICENSE file for details.