RailCore Developers

Indian Railways API docs and code samples, plus your RailCore usage, keys and live test requests.

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
80%
이름 품질
95%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~3,964토큰 (도구 정의)
~4.9 KB일반적인 응답 크기
상당한 주의 영향 (128k 컨텍스트의 3.10%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "developers": {
      "url": "https://mcp.railcore.tech/developers/mcp"
    }
  }
}

원격 엔드포인트

https://mcp.railcore.tech/developers/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (8)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢search_docs(query, kind, limit)

Search the RailCore Indian Railways API documentation: guides (authentication, request signing, rate limits, billing in requests), endpoint pages and error codes. Returns the best matching sections with links. Use it for any how-to question about the API.

입력 스키마

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "What to look for, in plain words or an error code."
    },
    "kind": {
      "description": "Limit results to guides, endpoints or errors. Default: any.",
      "type": "string",
      "enum": [
        "any",
        "guide",
        "endpoint",
        "error"
      ]
    },
    "limit": {
      "description": "How many results, 1 to 10. Default: 5.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "guide",
              "endpoint",
              "error"
            ]
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id",
          "title",
          "url",
          "snippet"
        ],
        "additionalProperties": false
      }
    },
    "catalog_generated_at": {
      "type": "string"
    }
  },
  "required": [
    "query",
    "results",
    "catalog_generated_at"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_endpoint(endpoint, detail)

Details of one RailCore API endpoint: method and URL, parameters, what it costs in requests, the key scope it needs, which plans can use it and whether requests must be signed, response fields and the errors it can answer. Accepts an endpoint id (seat-availability), a method and path (GET /trains/{train_number}/live) or a full URL.

입력 스키마

{
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300,
      "description": "An endpoint id (seat-availability), a method and path (GET /availability/seats) or a URL."
    },
    "detail": {
      "description": "summary (default) or full, which adds response fields and a response example.",
      "type": "string",
      "enum": [
        "summary",
        "full"
      ]
    }
  },
  "required": [
    "endpoint"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "cost": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "requests": {
          "type": "number"
        },
        "text": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "minimum": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "requests",
        "text"
      ],
      "additionalProperties": false
    },
    "availability": {
      "type": "string"
    },
    "signing_required": {
      "type": "boolean"
    },
    "signing": {
      "type": "string"
    },
    "parameters": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "in": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "example": {
            "type": "string"
          },
          "default": {
            "type": "string"
          },
          "allowed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "minimum": {
            "type": "number"
          },
          "maximum": {
            "type": "number"
          },
          "pattern": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "in",
          "type",
          "required",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "status": {
            "type": "number"
          },
          "code": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          },
          "meaning": {
            "type": "string"
          },
          "fix": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "code",
          "retryable",
          "meaning"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "body_fields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "allowed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group": {
            "type": "string"
          },
          "deprecated": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "type",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "body_example_json": {
      "type": "string"
    },
    "response_fields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "allowed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group": {
            "type": "string"
          },
          "deprecated": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "type",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "response_example_json": {
      "type": "string"
    },
    "docs_url": {
      "type": "string"
    },
    "markdown_url": {
      "type": "string"
    },
    "catalog_generated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "title",
    "method",
    "url",
    "summary",
    "description",
    "scope",
    "cost",
    "availability",
    "signing_required",
    "signing",
    "parameters",
    "errors",
    "notes",
    "docs_url",
    "markdown_url",
    "catalog_generated_at"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_code_sample(endpoint, language, signed)

Working code for a RailCore API endpoint in curl, Node.js, Python, PHP, Go or Java. Set signed to true for Growth, Scale and Enterprise keys, which must sign every request with HMAC-SHA256. Samples read the key from RAILCORE_KEY and the signing secret from RAILCORE_HMAC_SECRET, and work out their dates when they run.

입력 스키마

{
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300,
      "description": "An endpoint id, a method and path, or a URL."
    },
    "language": {
      "type": "string",
      "enum": [
        "curl",
        "node",
        "python",
        "php",
        "go",
        "java"
      ],
      "description": "curl, node, python, php, go or java."
    },
    "signed": {
      "description": "true for Growth, Scale and Enterprise keys, which must sign every request. Default: true only for endpoints that signing plans alone can use.",
      "type": "boolean"
    }
  },
  "required": [
    "endpoint",
    "language"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "endpoint_id": {
      "type": "string"
    },
    "language": {
      "type": "string",
      "enum": [
        "curl",
        "node",
        "python",
        "php",
        "go",
        "java"
      ]
    },
    "signed": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    },
    "env_vars": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "docs_url": {
      "type": "string"
    },
    "catalog_generated_at": {
      "type": "string"
    }
  },
  "required": [
    "endpoint_id",
    "language",
    "signed",
    "code",
    "env_vars",
    "notes",
    "docs_url",
    "catalog_generated_at"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢explain_error(code, status, endpoint, error_json)

What a RailCore API error means and how to fix it. Pass the error code (QUOTA_NOT_SUPPORTED), the HTTP status, or the whole error response. Never paste an API key or signing secret; any key-shaped text is removed before it is read.

입력 스키마

{
  "type": "object",
  "properties": {
    "code": {
      "description": "The error code, such as QUOTA_NOT_SUPPORTED.",
      "type": "string",
      "maxLength": 80
    },
    "status": {
      "description": "The HTTP status, such as 422.",
      "type": "integer",
      "minimum": 100,
      "maximum": 599
    },
    "endpoint": {
      "description": "The endpoint the request went to, if known.",
      "type": "string",
      "maxLength": 300
    },
    "error_json": {
      "description": "The error response body. Remove any API key or secret first.",
      "type": "string",
      "maxLength": 20000
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "known": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    },
    "status": {
      "type": "number"
    },
    "category": {
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    },
    "meaning": {
      "type": "string"
    },
    "fix": {
      "type": "string"
    },
    "docs_url": {
      "type": "string"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "key_warning": {
      "type": "string"
    },
    "catalog_generated_at": {
      "type": "string"
    }
  },
  "required": [
    "known",
    "meaning",
    "fix",
    "docs_url",
    "endpoints",
    "catalog_generated_at"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_plans(plan)

RailCore API plans: monthly price in INR, requests a month, per minute and per day, which plans must sign requests, IP allowlists, and which include charts and jobs. Pass a plan name to see one plan.

입력 스키마

{
  "type": "object",
  "properties": {
    "plan": {
      "description": "A plan name or id, such as Growth. Leave out to compare all plans.",
      "type": "string",
      "maxLength": 60
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "plans": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string",
            "description": "Monthly price, or Contract price for Enterprise."
          },
          "price_inr_per_month": {
            "description": "Left out for contract pricing.",
            "type": "number"
          },
          "requests_per_month": {
            "description": "Left out when agreed by contract.",
            "type": "number"
          },
          "requests_per_minute": {
            "description": "Left out when agreed by contract.",
            "type": "number"
          },
          "requests_per_day": {
            "description": "Left out when the plan has no daily cap.",
            "type": "number"
          },
          "must_sign_requests": {
            "type": "boolean"
          },
          "ip_allowlist": {
            "type": "boolean"
          },
          "charts_and_jobs": {
            "type": "boolean"
          },
          "commercial_use": {
            "type": "boolean"
          },
          "support": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "highlights": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name",
          "price",
          "must_sign_requests",
          "ip_allowlist",
          "charts_and_jobs",
          "commercial_use",
          "support",
          "summary",
          "highlights"
        ],
        "additionalProperties": false
      }
    },
    "pricing_url": {
      "type": "string"
    },
    "signing_rule": {
      "type": "string"
    },
    "catalog_generated_at": {
      "type": "string"
    }
  },
  "required": [
    "plans",
    "pricing_url",
    "signing_rule",
    "catalog_generated_at"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_my_usage

Your RailCore API plan and this month's usage: requests used and left, the per-minute and per-day limits, use per API key and in the docs playground, and when the allowance refills. Requires sign-in to your RailCore account.

입력 스키마

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "unit": {
      "type": "string",
      "enum": [
        "requests",
        "credits"
      ]
    },
    "has_plan": {
      "type": "boolean"
    },
    "plan": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "renews": {
          "type": "boolean",
          "description": "false: the plan ends at period_end instead of renewing."
        },
        "period_end": {
          "type": "string"
        },
        "trial_ends_at": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "status",
        "renews"
      ],
      "additionalProperties": false
    },
    "this_month": {
      "type": "object",
      "properties": {
        "month": {
          "type": "string",
          "description": "YYYY-MM, the IST calendar month."
        },
        "month_name": {
          "type": "string"
        },
        "used": {
          "type": "number",
          "description": "Counted this IST month: the active keys plus the docs playground and try_endpoint."
        },
        "unlimited": {
          "type": "boolean"
        },
        "left": {
          "description": "Left now; left out when unlimited.",
          "type": "number"
        },
        "included_per_period": {
          "type": "number"
        },
        "resets_at": {
          "description": "When the allowance refills; left out when the plan ends at period_end instead.",
          "type": "string"
        }
      },
      "required": [
        "month",
        "month_name",
        "used",
        "unlimited"
      ],
      "additionalProperties": false
    },
    "limits": {
      "type": "object",
      "properties": {
        "per_minute": {
          "description": "Left out when negotiated.",
          "type": "number"
        },
        "per_day": {
          "description": "Left out when the plan has no daily cap.",
          "type": "number"
        },
        "day_resets_at": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "by_key": {
      "type": "object",
      "properties": {
        "period": {
          "type": "string",
          "description": "The whole IST months these figures count, such as November 2026."
        },
        "months": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "used": {
                "type": "number"
              },
              "requests_ok": {
                "type": "number"
              },
              "requests_err": {
                "type": "number"
              },
              "label": {
                "type": "string"
              },
              "key_prefix": {
                "type": "string"
              },
              "active": {
                "type": "boolean"
              }
            },
            "required": [
              "used",
              "requests_ok",
              "requests_err",
              "label",
              "key_prefix",
              "active"
            ],
            "additionalProperties": false
          }
        },
        "playground": {
          "type": "object",
          "properties": {
            "used": {
              "type": "number"
            },
            "requests_ok": {
              "type": "number"
            },
            "requests_err": {
              "type": "number"
            }
          },
          "required": [
            "used",
            "requests_ok",
            "requests_err"
          ],
          "additionalProperties": false
        },
        "total": {
          "type": "object",
          "properties": {
            "used": {
              "type": "number"
            },
            "requests_ok": {
              "type": "number"
            },
            "requests_err": {
              "type": "number"
            }
          },
          "required": [
            "used",
            "requests_ok",
            "requests_err"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "period",
        "months",
        "keys",
        "playground",
        "total"
      ],
      "additionalProperties": false
    },
    "key_count": {
      "type": "number"
    },
    "partial": {
      "type": "boolean",
      "description": "true: some counters could not be read, so figures may be low."
    },
    "pricing_url": {
      "type": "string"
    }
  },
  "required": [
    "unit",
    "has_plan",
    "by_key",
    "key_count",
    "partial",
    "pricing_url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢list_my_keys

Your active RailCore API keys: label, the first characters of the key, scopes, whether a signing secret is set, how many IP addresses are allowed, and when each was created, last used and expires. Never a full key or secret. Requires sign-in to your RailCore account.

입력 스키마

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "count": {
      "type": "number"
    },
    "keys": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "key_prefix": {
            "type": "string",
            "description": "The first characters only, never the full key."
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "signing_secret_set": {
            "type": "boolean",
            "description": "true: requests with this key must be signed."
          },
          "ip_allowlist_count": {
            "type": "number",
            "description": "0: any IP address."
          },
          "created_at": {
            "type": "string"
          },
          "last_used_at": {
            "type": "string"
          },
          "expires_at": {
            "description": "Left out when the key never expires.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "key_prefix",
          "scopes",
          "signing_secret_set",
          "ip_allowlist_count",
          "created_at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "count",
    "keys"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟡try_endpoint(endpoint, params, body, max_requests)

Send one real request to a RailCore API read endpoint with your account and return its answer: status, request ID, requests counted and left, and the response body. It counts against your plan like any API request, so ask the user first. max_requests caps what it may count (default 1); a request that would count more is refused before it is sent. At most 30 tries an hour. Requires sign-in to your RailCore account. The first try also asks permission to make test requests.

입력 스키마

{
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300,
      "description": "A read endpoint: an id (search-stations), a method and path (GET /stations/search) or a URL."
    },
    "params": {
      "description": "Path and query parameters by name, every value as a string, such as {\"q\": \"pune\", \"limit\": \"5\"} or {\"train_number\": \"12951\"}. Dates as YYYY-MM-DD.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "body": {
      "description": "The JSON body as text, for the two POST endpoints only (batch-seat-availability, compare-journeys), such as {\"journeys\": [{\"from\": \"BSL\", \"to\": \"ADI\", \"date\": \"2026-12-01\"}]}.",
      "type": "string",
      "maxLength": 65536
    },
    "max_requests": {
      "description": "The most requests this try may count, 1 to 25. Default 1. Raise it only after the user agrees to the cost.",
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "required": [
    "endpoint"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "endpoint_id": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "The public URL of the same request."
    },
    "status": {
      "type": "number"
    },
    "ok": {
      "type": "boolean"
    },
    "request_id": {
      "type": "string"
    },
    "requests_counted": {
      "description": "From X-RailCore-Credits-Cost.",
      "type": "number"
    },
    "requests_remaining": {
      "description": "From X-RailCore-Credits-Remaining.",
      "type": "number"
    },
    "quoted_requests": {
      "type": "number",
      "description": "What this request was expected to count, before it was sent."
    },
    "body_json": {
      "type": "string",
      "description": "The response body as text, cut near 32 KB."
    },
    "truncated": {
      "type": "boolean"
    },
    "error_code": {
      "type": "string"
    },
    "error_message": {
      "type": "string"
    },
    "docs_url": {
      "type": "string"
    }
  },
  "required": [
    "endpoint_id",
    "method",
    "url",
    "status",
    "ok",
    "quoted_requests",
    "body_json",
    "truncated",
    "docs_url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 8개