MCP ExplorerExplorer

Tiangong Lca Mcp

@linancnon 10 months ago
2 MIT
FreeCommunity
AI Systems
tiangong-lca-mcp

Overview

What is Tiangong Lca Mcp

TianGong-LCA-MCP is a Model Context Protocol (MCP) Server that supports three protocols: STDIO, SSE, and StreamableHttp, enabling efficient communication and data exchange in various applications.

Use cases

Use cases for TianGong-LCA-MCP include building real-time applications, integrating with data processing pipelines, developing interactive web applications, and facilitating communication between microservices.

How to use

To use TianGong-LCA-MCP, install the server using npm, configure the environment, and start the server using STDIO or SSE protocols. Alternatively, you can run it using Docker for containerized deployment.

Key features

Key features of TianGong-LCA-MCP include support for multiple communication protocols (STDIO, SSE, StreamableHttp), easy installation via npm, Docker support for containerization, and a development environment setup for local testing.

Where to use

TianGong-LCA-MCP can be used in fields such as software development, data processing, real-time communication systems, and any application requiring efficient model context management.

Content

TianGong-AI-MCP

中文 | English

TianGong AI Model Context Protocol (MCP) Server supports STDIO, SSE and StreamableHttp protocols.

Starting MCP Server

Client STDIO Server

npm install -g @tiangong-lca/mcp-server

npx dotenv -e .env -- \
npx -p @tiangong-lca/mcp-server tiangong-lca-mcp-stdio

Remote SSE Server

npm install -g @tiangong-lca/mcp-server
npm install -g supergateway

npx dotenv -e .env -- \
npx -y supergateway \
    --stdio "npx -y -p @tiangong-lca/mcp-server tiangong-lca-mcp-stdio" \
    --port 3001 \
    --ssePath /sse --messagePath /message

Using Docker

# 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

# 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

# Format code using the linter
npm run lint

Local Testing

STDIO Server

# Launch the STDIO Server using MCP Inspector
npm start

SSE Server

# Build and package the project
npm run build && npm pack

# Optionally, install supergateway globally
npm install -g supergateway

# Launch the SSE Server (If the parameter --baseUrl is configured, it should be set to a valid IP address or domain name)
npx dotenv -e .env -- \
npx -y supergateway \
    --stdio "npx -y -p tiangong-lca-mcp-server-0.0.5.tgz tiangong-lca-mcp-stdio" \
    --port 3001 \
    --ssePath /sse \
    --messagePath /message

# Launch MCP Inspector
npx @modelcontextprotocol/inspector

Publishing

npm login

npm run build && npm publish

scaffold

npx tsx src/tools/openlca_ipc_test.ts

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers