MCP.so
登录

Beginner's Guide to MCP Servers

@astensby

基本信息

分类

其他

传输方式

stdio

作者

astensby

关于 Beginner's Guide to MCP Servers

暂无概览

Beginner's Guide to MCP Servers 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "gritai-basic-mcp-server": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        ".venv"
      ]
    }
  }
}

Beginner's Guide to MCP Servers 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Beginner's Guide to MCP Servers?

Beginner's Guide to MCP Servers is a demonstration project that helps beginners build Model Context Protocol (MCP) servers with minimal coding experience. It includes two example MCP servers: one for local file operations and task management, and one for connecting to external APIs like Norwegian police data and stock markets.

How to use Beginner's Guide to MCP Servers?

Clone the project, create and activate a Python virtual environment (Python 3.11+ required), install dependencies with pip install -e ., then configure your MCP client (e.g., Claude Desktop) with the server command and arguments as shown in the README. Optionally set the ALPHA_VANTAGE_API_KEY environment variable for stock tools.

Key features of Beginner's Guide to MCP Servers

  • Two ready‑to‑run example MCP servers with multiple tools
  • Local motivational quotes and task manager (add/list/complete tasks)
  • Real‑time Norwegian police incidents fetcher (by district or municipality)
  • Stock ticker search and current price retrieval (requires free Alpha Vantage API key)
  • Simple tool‑adding pattern using the @mcp.tool() decorator
  • Customizable quote and task data via local JSON files

Use cases of Beginner's Guide to MCP Servers

  • Learning how MCP servers connect AI assistants to external data and tools
  • Building a personal task manager that an AI can read and update
  • Fetching live police incident data from Norway via an AI chat interface
  • Searching stock tickers and getting prices without leaving the AI conversation
  • Experimenting with adding new tools and API integrations to an MCP server

常见问题

1

What prerequisites are needed to run these servers?

Python 3.11 or higher must be installed. The project uses a virtual environment and the `pip install -e .` command to install dependencies.

2

Do I need an API key for all features?

No. The motivational quote and task manager server works without any external API key. The stock market features require a free Alpha Vantage API key set as the `ALPHA_VANTAGE_API_KEY` environment variable.

3

What files are included in the project?

The project contains `server.py` (API integrations), `motivational_server.py` (local operations), `quotes.json`, `tasks.json`, `pyproject.toml`, and a README.

4

How do I add a new tool?

Use the `@mcp.tool()` decorator on a Python function inside either server file. The function’s signature and docstring define the tool’s parameters and description.

5

How do I troubleshoot common errors?

Activate the virtual environment and run `pip install -e .` for module‑not‑found errors. Ensure your Alpha Vantage API key is set correctly (free keys have rate limits). Run the server from the project directory so that `quotes.json` and `tasks.json` are found.

评论

其他 分类下的更多 MCP 服务器