home / mcp / typescript mcp server

TypeScript MCP Server

Provides a TypeScript MCP server that queries Binance API to return crypto prices.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ber4444-typescript-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "/FULL_PATH_GOES_HERE/typescript_mcp"
      ]
    }
  }
}

You can run a TypeScript MCP server that connects to the Binance API to fetch and serve crypto price data. This MCP server lets you query symbols like BTC and receive up-to-date pricing information through the Model Context Protocol, enabling Copilot or other MCP clients to request live crypto prices.

How to use

Use an MCP client to connect to the Binance price MCP you configure. With the server running, you can request the price for a given crypto symbol and receive the latest price data. This enables tooling and copilots to answer questions about current market prices by delegating the request to the MCP server.

How to install

Prerequisites: you need Node.js and npm installed on your system.

1) Install project dependencies.

npm install

2) Add the MCP server configuration to your VS Code MCP settings using the following snippet. This registers a Binance MCP server named binance-ts-mcp and specifies how to start it with npx.

{
	"servers": {
		"binance-ts-mcp": {
			"command": "npx",
			"args": [
				"-y",
				"/FULL_PATH_GOES_HERE/typescript_mcp"
			]
		}
	},
	"inputs": []
}

3) Start or debug the MCP server using the provided command pattern. The example shows how to pass the full path to the TypeScript MCP entry file via npx. Adapt the path to your local setup.

4) For debugging, you can attach the inspector to the running process with this command structure. Replace the path with your actual project path.

npx @modelcontextprotocol/inspector node /home/presence/AndroidStudioProjects/mcp-course/typescript_mcp/src/binance_mcp.ts

5) Optional: publish the MCP to npmjs.com. You can log in and publish, then use the npm package remotely or locally as needed. Example commands include logging in and publishing.

npm login
npm publish

Available tools

price

Connects to the Binance API to fetch and return the price for a requested crypto symbol.