MCP server for Torna API documentation

MCP server for Torna API documentation

torna-mcp•bychenqi146

An MCP server that exposes the Torna API documentation system as MCP tools, resources, and prompts so AI assistants can search, retrieve, and explore API docs through natural language.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes Torna API documentation as MCP tools, resources, and prompts so assistants can search and retrieve API details.
  • •Lets assistants list and switch between Torna projects during a session.
  • •Provides MCP prompts that match natural language requirements to APIs and generate curl commands.

BEST FOR

  • •Finding APIs by natural language requirement in a Torna documentation system.
  • •Searching Torna API documentation by keyword from an AI assistant.
  • •Generating ready-to-use curl commands for documented APIs.

ABOUT TORNA-MCP

MCP server for Torna API documentation is cataloged as an MCP server attributed to chenqi146. An MCP server that exposes the Torna API documentation system as MCP tools, resources, and prompts so AI assistants can search, retrieve, and explore API docs through natural language. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Torna API documentation are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can it fetch multiple API details at once?

Yes, torna-get-doc-detail accepts single or comma-separated docIds and fetches them concurrently as a batch.

Does it require entering credentials every time?

No, credentials are cached per connection for zero-config authentication.

Can I switch between Torna projects during a session?

Yes, you can list projects and switch the active project on the fly.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7ab0e4ca1cc2 · 采集于 2026-11-13 12:25:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

torna-mcp

MCP server that bridges Torna API documentation system with AI assistants (Cursor, Claude Desktop, etc.). Query, search, and explore your Torna API docs through natural language.

What it does

This server exposes Torna's API documentation as MCP tools, resources, and prompts. Your AI assistant can:

  • Search APIs by keyword or natural language requirement
  • Retrieve detailed API definitions
  • Generate curl command examples
  • Switch between projects
  • Access project metadata

Features

  • Zero-config authentication: Credentials cached per connection, no repeated input
  • Batch operations: Fetch multiple API details concurrently
  • Smart matching: Natural language requirement → matching APIs
  • Project switching: Switch Torna projects on the fly

Quick Start

Installation

git clone https://github.com/chenqi146/torna-mcp.git
cd torna-mcp
npm install
npm run build

Run

npm start
# Server runs on http://localhost:3000

Or with Docker:

docker build -t torna-mcp .
docker run -p 3000:3000 torna-mcp

Configure in Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "torna": {
      "transport": "http",
      "url": "http://localhost:3000/mcp",
      "heartbeat": true,
      "headers": {
        "username": "your_torna_username",
        "password": "your_torna_password",
        "projectid": "your_project_id",
        "torna-base-url": "http://your-torna-server:7700"
      }
    }
  }
}

Restart Cursor and select the torna MCP server.

Usage Examples

Find APIs by requirement

You: "I need an API to query user information"

AI: Uses torna-find-apis-by-need to match APIs, returns:

  • User detail API (/api/user/detail)
  • User list API (/api/user/list)

Search by keyword

You: "Find all APIs related to 'parking'"

AI: Uses torna-search-docs with keyword "parking", returns matching APIs.

Get API details

You: "Get details for these three APIs: JzAM4Mzp,AbC123Xy,Def456Za"

AI: Uses torna-get-doc-detail with comma-separated docIds, fetches all concurrently.

Switch projects

You: "What projects are available? Switch to user-center project"

AI: Lists projects via torna-list-projects, switches via torna-select-project.

Generate curl command

You: "Generate a curl command for the user detail API"

AI: Uses torna-generate-request to produce a ready-to-use curl command.

MCP Tools

All tools automatically use cached authentication from connection headers.

ToolDescription
torna-project-infoGet current session info (username, project ID/name, token status, doc count)
torna-search-docsSearch APIs by keyword. Returns full tree if keyword is empty
torna-get-doc-detailGet API detail(s). Supports single or comma-separated docIds (batch, concurrent)
torna-list-projectsList all accessible spaces/projects
torna-select-projectSwitch active project for subsequent operations

MCP Resources

  • config://settings - Server configuration example
  • torna://session/project - Current session project info
  • torna://projects - Real-time project list

MCP Prompts

  • torna-find-apis-by-need - Find APIs matching a natural language requirement. Auto-fetches details for projects with ≤30 APIs for better matching.
  • torna-generate-request - Generate curl command from API definition

Development

# Install dependencies
npm install

# Development mode
npm run dev

# Build
npm run build

# Production
npm start

Environment Variables

Logging

  • [TornaExternal] - Actual Torna API requests/responses
  • [TornaAPI] - MCP responses to clients
  • [MCPAuth] - Authentication events
  • [MCPCapture] - MCP request capture

Architecture

AI Assistant (Cursor/Claude) 
    ↓ MCP Protocol
torna-mcp Server (this project)
    ↓ HTTP Proxy
Torna API Server

The server acts as a proxy between MCP clients and Torna, handling:

  • Authentication (login, token caching)
  • Request routing (MCP tools → Torna endpoints)
  • Response transformation (Torna format → MCP format)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes
  4. Submit a pull request

Keep it simple. No unnecessary abstractions.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Torna API documentation from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/torna-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools