Skip to main content
Glama

TianGong-LCA-MCP Server

by linancn
DEV_EN.md1.94 kB
# TianGong-AI-MCP [中文](https://github.com/linancn/tiangong-lca-mcp/blob/main/DEV_CN.md) | [English](https://github.com/linancn/tiangong-lca-mcp/blob/main/DEV_EN.md) TianGong AI Model Context Protocol (MCP) Server supports STDIO and StreamableHttp protocols. ## Starting MCP Server ### Client STDIO Server ```bash npm install -g @tiangong-lca/mcp-server npx dotenv -e .env -- \ npx -p @tiangong-lca/mcp-server tiangong-lca-mcp-stdio ``` ### Using Docker ```bash # Build MCP server image using Dockerfile (optional) docker build -t linancn/tiangong-lca-mcp-server:0.0.5 . # Pull MCP server image docker pull linancn/tiangong-lca-mcp-server:0.0.5 # Start MCP server using Docker docker run -d \ --name tiangong-lca-mcp-server \ --publish 9278:9278 \ --env-file .env \ linancn/tiangong-lca-mcp-server:0.0.5 ``` ## Development ### Environment Setup ```bash # Install Node.js curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash nvm install 22 nvm use # Install dependencies npm install # Update dependencies npm update && npm ci ``` ### Code Formatting ```bash # Format code using the linter npm run lint ``` ### Local Testing #### STDIO Server ```bash # Launch the STDIO Server using MCP Inspector npm start ``` #### Launch MCP Inspector ```bash npx @modelcontextprotocol/inspector ``` ### Publishing ```bash npm login npm run build && npm publish ``` ### scaffold ```bash npx tsx src/tools/openlca_ipc_test.ts ``` ### Deployment ```bash docker build --no-cache -t 339712838008.dkr.ecr.us-east-1.amazonaws.com/tiangong-lca-mcp:0.0.6 . aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 339712838008.dkr.ecr.us-east-1.amazonaws.com docker push 339712838008.dkr.ecr.us-east-1.amazonaws.com/tiangong-lca-mcp:0.0.6 docker run -d -p 9278:9278 --env-file .env 339712838008.dkr.ecr.us-east-1.amazonaws.com/tiangong-lca-mcp:0.0.6 ```

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/linancn/tiangong-lca-mcp'

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